Results 1 to 10 of 10

Thread: I got it working

  1. #1
    Lesser Wizard EnderDas's Avatar
    Join Date
    Feb 2016
    Location
    Dasville
    Posts
    154

    Default I got it working

    I finally got my python code to work I just wasn't using the right syntax -_-
    Code:
    data1 = input("please enter new username : ")
    print("username now registered")
    data2 = input("UserName : ")
    if (data2==data1):
      print("username correct!...")
    else:
      print("incorrect username?...")
      data2 = input("UserName : ")
      if (data2==data1):
        print("username correct!...")
      else:
        quit()
      
    input("__")
    It's used to register a user name and save it
    Only works once

  2. #2
    Master Sorcerer PiZaHuTt's Avatar
    Join Date
    May 2015
    Location
    ☀️Beautiful Southern California😎
    Posts
    2,631

    Default

    What is this
    kys

  3. #3
    Master Sorcerer Acrystic's Avatar
    Join Date
    Feb 2016
    Location
    Growtopia is my home
    Posts
    556

    Default

    Quote Originally Posted by EnderDas View Post
    I finally got my python code to work I just wasn't using the right syntax -_-
    Code:
    data1 = input("please enter new username : ")
    print("username now registered")
    data2 = input("UserName : ")
    if (data2==data1):
      print("username correct!...")
    else:
      print("incorrect username?...")
      data2 = input("UserName : ")
      if (data2==data1):
        print("username correct!...")
      else:
        quit()
      
    input("__")
    It's used to register a user name and save it
    Only works once
    What is this. I know it's python though..

  4. #4
    Lesser Wizard EnderDas's Avatar
    Join Date
    Feb 2016
    Location
    Dasville
    Posts
    154

    Default

    Quote Originally Posted by Acrystic View Post
    What is this. I know it's python though..
    enter it into a console to see

  5. #5
    Master Sorcerer |ThyLuigi|'s Avatar
    Join Date
    Dec 2014
    Location
    Alpha Centauri
    Posts
    8,191

    Default

    Now here's a challenge: save the username and password into a text file so they can log into it later.
    "It vexes me how veracious discussion actually devolved into what literally is nocuous as a brainwashed drove of cattle spamming the only two words in their vocabulary: forum game." - JOSHIE63, 2017

    ↓↓↓
    IGN:TheLuigi
    ↑↑↑

  6. #6
    Master Sorcerer MyLegGuy's Avatar
    Join Date
    Mar 2014
    Location
    United States
    Posts
    1,631

    Default

    You can do a while loop or something to get unlimited tries to enter the username.

  7. #7
    Lesser Wizard EnderDas's Avatar
    Join Date
    Feb 2016
    Location
    Dasville
    Posts
    154

    Default

    Quote Originally Posted by |ThyLuigi| View Post
    Now here's a challenge: save the username and password into a text file so they can log into it later.
    Ight.... I'll try

  8. #8
    Lesser Wizard EnderDas's Avatar
    Join Date
    Feb 2016
    Location
    Dasville
    Posts
    154

    Default

    well i made a new version of it, its only missing the security questions test

    Code:
    #UserName & PassWord + SQ's
    #By EnderDas
    print('the system exits after two failed atempts...')
    data = input("Please enter new Username : ")
    print('Username', data,'now registered!...')
    data1 = input("Please enter new PassWord : ")
    print('Password', data1,'now registered!...')
    input("Now for Security Questions. Press enter to continue...")
    dat1 = input("Favorite game? : ")
    dat2 = input("First Pet? : ")
    dat3 = input("Dark or Milk Coco? : ")
    print('all Questions have been saved!...')
    #---------------------------TEST-----------------------------
    data2 = input("UserName : ")
    if (data2==data):
      print('UserName Valid!...')
    else:
      print('UserName Invalid?...')
      data2 = input("UserName : ")
      if (data2==data):
        print('UserName Valid!...')
      else:
        print('UserName Invalid?...\nOops too many failed atempts, Good Bye!... ')
    	
    data3 = input("PassWord : ")
    if (data3==data1):
      print('Password Valid!...\nWelcome back', data,'!')
    else:
      print('PassWord Invalid?...')
      data3 = input("PassWord : ")
      if (data3==data1):
        print('Password Valid!...\nWelcome back', data,'!')
      else:
        print('PassWord Invalid?...\nOops too many failed atempts, Good Bye!... ')
    	
    #Ill Post the Questions later my hands are tired from typing -_- .....	
    input("__")
    also the invalid username and passwords are bugged because ive used to many spaces could some one fix that for me plzzzzz

  9. #9
    Master Sorcerer |ThyLuigi|'s Avatar
    Join Date
    Dec 2014
    Location
    Alpha Centauri
    Posts
    8,191

    Default

    Quote Originally Posted by EnderDas View Post
    well i made a new version of it, its only missing the security questions test

    Code:
    #UserName & PassWord + SQ's
    #By EnderDas
    print('the system exits after two failed atempts...')
    data = input("Please enter new Username : ")
    print('Username', data,'now registered!...')
    data1 = input("Please enter new PassWord : ")
    print('Password', data1,'now registered!...')
    input("Now for Security Questions. Press enter to continue...")
    dat1 = input("Favorite game? : ")
    dat2 = input("First Pet? : ")
    dat3 = input("Dark or Milk Coco? : ")
    print('all Questions have been saved!...')
    #---------------------------TEST-----------------------------
    data2 = input("UserName : ")
    if (data2==data):
      print('UserName Valid!...')
    else:
      print('UserName Invalid?...')
      data2 = input("UserName : ")
      if (data2==data):
        print('UserName Valid!...')
      else:
        print('UserName Invalid?...\nOops too many failed atempts, Good Bye!... ')
        
    data3 = input("PassWord : ")
    if (data3==data1):
      print('Password Valid!...\nWelcome back', data,'!')
    else:
      print('PassWord Invalid?...')
      data3 = input("PassWord : ")
      if (data3==data1):
        print('Password Valid!...\nWelcome back', data,'!')
      else:
        print('PassWord Invalid?...\nOops too many failed atempts, Good Bye!... ')
        
    #Ill Post the Questions later my hands are tired from typing -_- .....    
    input("__")
    also the invalid username and passwords are bugged because ive used to many spaces could some one fix that for me plzzzzz
    Your invalid usernames and passwords don't exit the program either. :]
    (Psss...do raise SystemExit)
    "It vexes me how veracious discussion actually devolved into what literally is nocuous as a brainwashed drove of cattle spamming the only two words in their vocabulary: forum game." - JOSHIE63, 2017

    ↓↓↓
    IGN:TheLuigi
    ↑↑↑

  10. #10
    Lesser Wizard EnderDas's Avatar
    Join Date
    Feb 2016
    Location
    Dasville
    Posts
    154

    Default

    Quote Originally Posted by |ThyLuigi| View Post
    Your invalid usernames and passwords don't exit the program either. :]
    (Psss...do raise SystemExit)
    Ahhh that's what it is omg thank you

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •