Exercise 8 · Chapter: Linear ProgramsOptional+50 XP
Pizza Slices
You have 3 pizzas with 8 slices each, and 5 people. Calculate how many slices each person gets and how many are left over.
Your output should be:
Each person gets 4 slices Leftover slices: 4
Need a hint?
3 available · costs 5 XP each
python
pizzas = 3
slices_per_pizza = 8
people = 5
# Calculate slices per person and leftovers
Output
Run your code to see the output here.