← back to unit
Easy
# intro
Leftover Puppy Treats
You're splitting a bag of treats evenly among a litter of puppies 🐶 — but this time you want to know how many treats are left over after the even split.
You're given the total treats, then the number of puppies. Print the leftover amount.
For example, 10 treats and 3 puppies → print 1 (3 puppies get 3 each, using 9, with 1 left over).
💡 need a hint?
intro-leftover-treats.py🔒 given lines are locked — write your code in between
loading...