ich wundere mich über folgendes:
Code: Alles auswählen
[...]
inp = ''
error=0
while error==1:
inp = raw_input()
if len(inp)>1:
print "Eingabe zu lang!"
error=1
print error
i=0
for chr in word:
i+=1
if inp==chr:
print word[i]
else:
print "not found!"
[...]
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
not found!
Mit "inp = sys.stdin.readline()" hab ich es auch schon probiert.
Argh!
Kann mir jemand helfen?
Grüße
za0