KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Which of the following is not a part of function header?

  1. Keyword def
  2. Function_name
  3. Parameters
  4. Keyword return

Python Functions

1 Like

Answer

Keyword return

Reason — A function header includes the def keyword, the function name, and the list of parameters enclosed in parentheses, followed by a colon. The return keyword is used inside the function body, not in the function header.

Answered By

3 Likes


Related Questions