Ice Cream for everyone, I keep failing test case 1? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Ice Cream for everyone, I keep failing test case 1?

Here is my code: money = int(input()) price = int(input()) total = price*10 if money > total: print(money-total) All of the test cases pass except the first one. I have tried accounting for the case specifically with a nested if (if money == total) but that has also resulted in fail. Also tried d = money - total but this has also failed. Any ideas?

30th Oct 2021, 11:42 AM
Mohammed
1 Answer
+ 7
money >= total
30th Oct 2021, 11:57 AM
Simba
Simba - avatar