Skee ball | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Skee ball

What is wrong with my code ? Test case 3 is wrong while all others are alright i=int(input()) t=i/12 if t<40: print('Try again') elif t>=40: print('Buy it!')

7th Dec 2021, 10:50 PM
Ephraim Darkey
Ephraim Darkey - avatar
1 Answer
0
Kwabena Darkey the program is supposed to accept two input values, not one. The second input value is the number of tickets per squirt gun. Replace the hard-coded value in your program by an input value.
8th Dec 2021, 12:40 AM
Brian
Brian - avatar