I couldnā€™t finger out my questionā€¦ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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