“int” doesnt work and cant solve the problem. also when i try to find how many chocolates are left it doesnt accept it maybe my formoula is worng
Please don’t post pictures.
Python has several operators and built-in function which could be used:
>>> spam = 11
>>> eggs = 4
>>> spam / eggs
2.75
>>> spam // eggs
2
>>> spam % eggs
3
>>> divmod(spam, eggs)
(2, 3)
1 Like
thank you!
sorry for the pic didnt know.