Computer Science

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

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

Python Functions

1 Like

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.

Answered By

1 Like


Related Questions