Use: import task_operators_05
Sam has 27 apples and 5 friends. He wants to share the apples equally with all of them (including himself). He also wants to know how many apples will be left over after the share.
Write a Python program that calculates how many apples each person gets and how many are left.
name and set it to “Sam”.apples and set it to 27.friends and set it to 5.people using friends + 1.apples_each using apples // people.leftover using apples - (apples_each * people).<name> gives <apples_each> apples to each of <people> people. Leftover: <leftover>
We’re always looking for international STEM educators to join our team. If you are interested, please send us a mail and we’ll get back to you!
If you have any questions, kindly send us a mail. Don’t forget to follow and like all our social accounts to get updates on competitions!
