- 1
What is Wrong With This Code, Always Give Mistake, the exercise is called pull the trigger in the flow control section
x = str(input()) while contador != 0: i = 100 if x == "hit": i = i + 10 elif x == "miss": i = i - 20 else: print("please, introduce 'hit' or 'miss'") print(i) contador - 1
1 Réponse
0
you need to take 4 string input from user as hit or miss
- you take 1 string as input
you need to make breakpoint(start variable = 4) to start from getting input from user
-you used 'contador' before declare it and assign it a value
you need to calculate his points then print it after while
- you reduce 'contador' outside while, focus on indenting
this is my solution if u wanna check it
https://code.sololearn.com/cq2Ihz5Bs0qX