Multiple choice

which command is used to create a function?

  1. for

  2. range

  3. while

  4. def

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The 'def' keyword is used to define a function in Python.