Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
1. The question asks you do not print anything if you do not have enough money. Currently you always print. 2. Even though it may work with given test cases, but the money % total expression is not correct. You are not dividing your money by the total amount. If say you have 100 and the total price is 50, your expression would mean 0 left, which is not correct.
25th Jan 2021, 7:42 PM
Mateusz Malenta
Mateusz Malenta - avatar
+ 2
No idea what test cases you're talking about. Is this a code coach challenge?
25th Jan 2021, 8:05 PM
Sonic
Sonic - avatar