+ 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 RĂ©ponses
+ 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