+ 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 odpowiedzi
+ 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)