Computer Science

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

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

Python Functions

3 Likes

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.

Answered By

1 Like


Related Questions