Robotics & Artificial Intelligence

Which of the following keywords is used to create a user-defined function?

  1. None
  2. define
  3. def
  4. func

Python Functions

1 Like

Answer

def

Reason — The def keyword is used to define or create a user-defined function in Python.

Answered By

2 Likes


Related Questions