1
Ich erstelle einen Code für ein Passwortsystem Tahe dreht den Buchstaben zu Zahlen Was habe ich getan Wronge?TypeError: Kann 'int' -Objekt nicht implizit für ein Pascode-System in str konvertieren
abc = "....abcdefg......hijklm........nop.qrst......uvwx.yzæøå"
def encode(letter):
tall = abc.find(letter)
return tall
pw1 = "bb"
output = ""
for num in range(28):
output = ""
for character in pw1:
if character in abc:
output = output + encode(character)
else:
output = output + character
print(secret)
print(output)
der Code Fom phyton3.5.2 Fehler ist
Traceback (most recent call last):
File "C:/Users/Artde/Desktop/Python/passord system.py", line 17, in <module>
output = output + encode(character)
TypeError: Can't convert 'int' object to str implicitly
Tanks. aber wie kann ich das tun es wird 10 und nicht 55 (ich meine die Zahlen zu addieren) – Arthu