Could someone help me in skee_ball easy code coach. It gives me one wrong case | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Could someone help me in skee_ball easy code coach. It gives me one wrong case

points=int(input()) tickets=int(points/12) cost=int(input()) if tickets/cost>=1: print('Buy it!') else: print ('Try again')

13th Apr 2021, 4:43 PM
اسلام البغدادى
اسلام البغدادى - avatar
3 Answers
+ 7
Maybe cost is 0 for that case. You can try this to avoid it if tickets>=cost:
13th Apr 2021, 4:53 PM
Simba
Simba - avatar
+ 1
This is true.. Thank u
13th Apr 2021, 5:23 PM
اسلام البغدادى
اسلام البغدادى - avatar
9th Apr 2022, 6:29 PM
Per Bratthammar
Per Bratthammar - avatar