Could someone help me in skee_ball easy code coach. It gives me one wrong case | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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