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 Respuesta
+ 7
money >= total
30th Oct 2021, 11:57 AM
Simba
Simba - avatar