Im new to programming python3 and i'm trying to write a password program. i want to compare a word from a .txt file with a input. no matter if i type the password in write or wrong it always comes up 'access denied!'
inFile = open('passwordtest.txt', 'r') password = inFile.read() userguess = input("Enter password: ") if password == userguess: print('Access Granted!') else: print('Access Denied!') input()
Thank you in advanced!!