0 of 6 problems solved • 0%

Exercise prompt

Book by Keyword

A call can name its arguments explicitly. The names bind values to the intended parameters even when the call uses a different order.

Example

def label(size, color): return f"{color} {size}" print(label(color="green", size="small")) # green small

The first argument supplies color because its keyword is color. It does not fill the size parameter.

Your task

In the supplied function, the star means all the following parameters must be passed by keyword. Use reserve to create booking for Noor in room 7 for three hours. Pass the values by keyword. Compare the result with what the starter produces for a default-length reservation.