users = {} # this is the mapping users["JoshThomas"] = "02085082170" # it currently contains username "JoshThomas" with password "02085082170" #... username = raw_input("What is your username? ") password = raw_input("What is your password? ") if username in users.keys(): expected_password = users[username] if expected_password == password: from time import sleep print "Authenticating User Name And Login Details.....", sleep(0.3) print "Login Details Confirmed....", sleep(0.1) print "Executing Advanced Python Auth Script Mark Three...", sleep(0.4) print "Welcome", username, ", Script Online And Fully Functional...", sleep(0.2) sleep(0.1)("NOTE: If you make an error inputing a command" "This script will terminated instantly...This includes CapsLock..") else: print "Did you forget your password,", username else: print "Unknown user"
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question