я получаю эту ошибкуЯ запутался об этой ошибке
TypeError: unsupported operand type(s) for +: 'int' and 'str'
В моем ниже коде:
done = False
while not done:
if You.Hit_points > 0 and Opponent.Hit_points > 0:
move = raw_input("Would you like to make a move? (y/n) ")
if move == "y":
print "",You.name,"hit ",Opponent.name," by",You.Hit_points," hit points!"
Opponent.Health = You.Hit_points + You.Skill_points + Opponent.Health
Спасибо!
Прочитайте ошибку снова. Реальный медленный. –
вы добавляете число в строку, не допускается. Либо сделайте все числа или все строки. –