0
NEXT QUESTION! HELP!
a=input Input = number ———— I want to make this: Life = Life - a Here's an error: Unsupported operand type(s) for -: 'int' and 'str'
15 odpowiedzi
+ 1
put every character in ' '
dont put input in second line
assign to any variable and use that
0
put input()
life is not previously define
0
I have defined Life previously... 
0
So... What I should do? 
0
ok then only replace input by input()
0
Input set by your precious message... 
0
is message coming now too??
0
My code is: 
a=input 
If input == 1 or 2:
Points = points - a 
a=a*10 
Health=a 
————— 
Error in points = points - a
0
in second line in place of input put a
0
Error in: 
Points = points - a
0
Other is ok
0
can u plz send full code.. then i will be able to help u better
0
while points > 0:
        if input == "1" or 1:
            end()
            wow()
            print('_-=Текущие характеристики=-_')
            print('\nЗДОРОВЬЕ | ' + str(health))
            hp = 10
            wow()
            print('Курс конвертации:| 1 К ' + str(hp) + ' |')
            if points > 0:
                a=input('Сколько опыта ты желаешь потратить? ')
                if a == 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10:
                    points = points-a
                    a=a*10
                    health = a
                else:
                  print(health)
0
Points is set to 10 
0
Thanks 



