0

Why my code gets error on test #3 for skee_ball task?

score = int(input()) ticket = int(score // 12) if ticket < 40 and score < 480: print("Try again") elif ticket > 40 and score >= 480: print("Buy it!")

19th Feb 2022, 3:19 PM
mdnk
4 ответов
+ 2
Avoid using magic numbers
19th Feb 2022, 3:51 PM
Ion Kare
Ion Kare - avatar
0
I was tried that too...but its not working
19th Feb 2022, 3:38 PM
mdnk
0
It's a task in code coach
19th Feb 2022, 3:41 PM
mdnk
- 2
points = int(input()) cost = int(input()) sum = points / 12 if (int(sum) >= cost): print("Buy it!") elif (int(sum) < cost): print("Try again")
19th Feb 2022, 3:47 PM
Ion Kare
Ion Kare - avatar