A function check_capacity determines whether a more items ca…
A function check_capacity determines whether a more items can be added to a container or if it is full. It takes two positional parameters: current_items and max_items, which are both numbers and are defined in this order. It also has an keyword parameter allow_overflow, which defaults to the boolean False. If allow_overflow = False, the function returns the boolean for if the current_items are less than or equal to max_items. If allow_overflow = True, it allows the container to exceed the maximum, thus always returning True. Enter the result of each of the following function calls. If an error would arise, enter the word Error. check_capacity(9, 4) [blank1] check_capacity(7, 7, allow_overflow = False) [blank2] check_capacity(7, 6, True) [blank3]
Read Details