I have file passwords.txt
i read file with .readlines() function.
Passwords is normal text and numbers. And text and numbers and @%# etc.. symbols.
I want found wrong passwords with symbols in this file.
Code right now:
file = open("password.txt","r") # Open file
contain = file.readlines() # Read file
errorsymbol_list = ['%','-','+',')','_','@','#']
for i in contain:
if i.find in error_list: # This if Statement is my error.
print(i, "Contain wrong symbols.")
else:
print(i,"is right to password. :)")
file.close()
Aucun commentaire:
Enregistrer un commentaire