Which keyword is used to define a function in Python?

Options

  • A. function
  • B. define
  • C. def
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. def

Detailed Explanation

The def keyword is used to define a function in Python.