lundi 18 mars 2019

I'm having trouble getting this file.read() to work [on hold]

This is my code so far. Im trying to make a randomly generated password to work with this passwords.txt contains a random string of text and numbers and symbols created differently with another python file. I might just be being stupid but any help is appreciated.

f = open("Passwords.txt","w+")

password = f.read()

login = input("PASSWORD")

if login == password:
    print("correct")
else:
    print("NO")




Aucun commentaire:

Enregistrer un commentaire