Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 41)
41.
How can you read a password from the console without echoing characters?
password = input("Enter password: ")
password = getpass.getpass("Enter password: ")
password = read_password()
password = input_password()
Answer: Option
Explanation:
To read a password from the console without echoing characters, use getpass.getpass().
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.