8
schrieb ich ein Programm Henker zu spielen --- es ist nicht fertig, aber es gibt mir einen Fehler aus irgendeinem Grunde ...Typeerror: ‚int‘ Objekt nicht aufrufbar ist ,,, len()
import turtle
n=False
y=True
list=()
print ("welcome to the hangman! you word is?")
word=raw_input()
len=len(word)
for x in range(70):
print
print "_ "*len
while n==False:
while y==True:
print "insert a letter:"
p=raw_input()
leenghthp=len(p)
if leengthp!=1:
print "you didnt give me a letter!!!"
else:
y=False
for x in range(len):
#if wo
print "done"
Fehler:
leenghthp=len(p)
TypeError: 'int' object is not callable
möglich Duplikat [Typeerror: 'int' Objekt ist nicht aufrufbar] (http://stackoverflow.com/questions/9767391/typeerror-int-object -ist-nicht-abrufbar –