A plate of cookies is shared out between the kids, whole cookies only, leftovers stay on the plate. Write cookies_each(cookies, kids) to return how many each kid gets. If no kids came (kids is 0), return 0.
cookies_each(12, 4)→3cookies_each(7, 0)→0def cookies_each(cookies, kids):
try:
# your code here: work out cookies each with // and return it
pass
except ZeroDivisionError:
return 0
Run tries the examples. When they look right, Submit.