KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

The structure of function header in Python is:

  1. "def" keyword followed by the function name and parameters
  2. "func" keyword followed by the function name and parameters
  3. "def" keyword followed by the return type, function name and parameters
  4. "define" keyword followed by the function name and parameters

Python Functions

2 Likes

Answer

"def" keyword followed by the function name and parameters

Reason — A Python function header consists of the def keyword, followed by the function name, a list of parameters enclosed in parentheses, and ends with a colon.

Answered By

3 Likes


Related Questions