CBSE Class 12 Computer Science Question 10 of 103

Working with Functions — Question 2

Back to all questions
2
Question

Question 2

Which of the following keywords marks the beginning of the function block?

  1. func
  2. define
  3. def
  4. function
Answer

def

Reason — The function in Python is defined as per following syntax :

def function_name(parameters):
    statements

According to this format, function definition begins with keyword def.