Trying to create a password generator
Cannot get if statement to work correctly, or know if this is really the right way to approach the problem. I need it to divide each letters number representation by 3 and return a # if it is a whole number.
password = input("password: ")
password = password.lower()
output = []
for character in password:
number = ord(character) - 96
output.append(number)
x = output
if x / 3:
print ("#")
print (output)
I get this error: TypeError: can only concatenate list (not "int") to list
x / 3
to do? – Tomerikoo Sep 30 '20 at 7:01