Valid calls with keyword and default arguments

A hotel booking program defines the Python function below. Which of the following calls run without raising an error? Select all that apply.


Python
def book(room, nights, breakfast=False):
    print(room, nights, breakfast)
Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Parameters and Arguments Questions: