0
Python, hidden test doesn't work
Write a program, which will take your money and price of one ice cream and print your left money only if you can buy ice cream for your 10 friends Don't print anything if money >100 My attempt: money = int(input()) price = int(input()) if money <=100 and money > 0: if price > 0: if money - (10*price) >= 0: print(money - (10*price))
1 Answer
+ 1
I had problems with this too and, if I remember rightly, it was because the problem was very poorly explained.
The line âDonât print anything if money > 100â should read âDonât print anything if the remainder is > 100â. Try amending your code to satisfy this condition instead.