HOME/Articles/

password (snippet)

Article Outline

Python example 'password'. Gets user input (password) and checks if the password is correct.

password

Python beginners example: password

password=input('Enter your password : ')
if password=='pass':
    print('Access granted ....!')

else:
    print('Access denied ....!')