Difference between revisions of "Python/UserPasswords"
From ProgrammingExamples
< Python
(Created page with 'import getpass username = str(raw_input("Username: ")) password = getpass.getpass("Password: ") #You will see that the password won't show on your screen print("Your username i…') |
|||
Line 1: | Line 1: | ||
+ | ==UserPasswords.py== | ||
+ | <source lang="python"> | ||
import getpass | import getpass | ||
Revision as of 09:16, 27 June 2010
UserPasswords.py
import getpass username = str(raw_input("Username: ")) password = getpass.getpass("Password: ") #You will see that the password won't show on your screen print("Your username is %s and your password is %s" % (username, password))