CBSE Class 12 Computer Science Question 27 of 103

Working with Functions — Question 3

Back to all questions
3
Question

Question 3

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 format :

def function_name(parameters):
    statements

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