Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 57)
57.
How can you read a password from the console and check if it meets certain criteria?
password = input("Enter password: "); validate_password(password)
password = input_password(); check_password_criteria(password)
password = getpass.getpass("Enter password: "); is_valid_password(password)
password = input("Enter password: "); validate_password_criteria(password)
Answer: Option
Explanation:
To read a password from the console and check if it meets certain criteria, use input("Enter password: "); validate_password(password).
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.