1. How many boxes?
Write code Easy ✓ CompletedComplete the function boxes_needed(items, per_box) so it returns how many boxes are needed to pack items things when each box holds per_box. A part-full box still counts, so round up with the math module. For example boxes_needed(10, 4) is 3.
import math
def boxes_needed(items, per_box):
# return the number of boxes (round up!)
pass
print(boxes_needed(10, 4))import math
def boxes_needed(items, per_box):
return math.ceil(items / per_box)
print(boxes_needed(10, 4))