Код: Выделить всё
TypeError: unsupported operand type(s) for &: 'int' and 'builtin_function_or_method'
Код: Выделить всё
try:
while (chances != 0) and flag == 0:
print()
chances-= 1
try:
guess = str(input('Enter a letter to guess: '))
except:
print('Enter only a letter!')
continue
if not guess.isalpha():
print('Enter only a LETTER')
continue
elif len(guess) & gt >1:
print('Enter only a SINGLE letter')
continue
elif guess in letterGuessed:
print('You have already guessed that letter')
continue
if guess in word:
k = word.count(guess)
for _ in range(k):
letterGuessed += guess
Подробнее здесь: https://stackoverflow.com/questions/785 ... at-do-i-do