KnowledgeBoat Logo
|

Computer Science

The first line of a function header begins with def keyword and eventually ends with a colon (:).

Python Functions

2 Likes

Answer

True

Reason — The function header starts with def keyword, followed by the function name and any parameters enclosed in parentheses. It ends with a colon (:) to indicate the beginning of the function's code block. The syntax for defining a function in Python is as follows: def function_name(parameters):.

Answered By

1 Like


Related Questions