0
hit and miss practice
Ok I've been here for more than an hour. this is my code: Points=100 Num=0 while (Num!=4): Action= input() Num+=1 if (Action=="hit"): Points+=10 else: Points -= 20 print(Points) This is my out put when the input is: hit, miss, hit, miss 110 90 100 80 So to get the "right" answer I'm supposed to get only only (80) and not the other bunch of numbers, but I don't know how to get a single output instead of 4. Hitelp!!!!
2 Antworten
+ 2
Make sure that the print statement is not inside the while loop.
+ 1
you just made feel like an idiot but also save my brain from exploating. Thank you T-T