+ 2
I couldnât finger out my questionâŠ
Here is my code, where is the tiny mistake? score=100 x=1 while x<5: input=int() if input == "hit": score+=10 else: score-=20 x+=1 print (score) Thanks
3 Answers
+ 3
èć
æŽŸè„ż
input1 = input ()
int() function used to convert input to integer
input () function used to get string input
+ 1
Wow YES!!!^^ thak you so much
0
You can not use Keywords and reserved words as variable. chek out keywords by:
import keyword
print(keyword.kwlist)