Which keyword defines a function in Python?

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

A) def

def name(parameters): defines a function. SLO CS-11-C-06

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise