CBSE Class 12 Computer Science Question 98 of 101

Functions — Question 10

Back to all questions
10
Question

Question 10

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

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):.