8
Napisałem program do gry w wisielca --- to nie jest skończony, ale daje mi błąd z jakiegoś powodu ...TypeError: „int” obiekt nie jest wymagalne ,,, 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"
błąd:
leenghthp=len(p)
TypeError: 'int' object is not callable
możliwe duplikat [Błąd typu: 'int' obiekt nie jest wymagalne] (http://stackoverflow.com/questions/9767391/typeerror-int-object -nie można go wywołać) –