+ 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

19th Feb 2022, 4:52 PM
葛兒派西
葛兒派西 - avatar
3 Answers
+ 3
葛兒派西 input1 = input () int() function used to convert input to integer input () function used to get string input
19th Feb 2022, 4:54 PM
A͢J
A͢J - avatar
+ 1
Wow YES!!!^^ thak you so much
19th Feb 2022, 4:55 PM
葛兒派西
葛兒派西 - avatar
0
You can not use Keywords and reserved words as variable. chek out keywords by: import keyword print(keyword.kwlist)
21st Feb 2022, 4:06 PM
Saad Khan
Saad Khan - avatar