Multiple choice technology programming languages

Function definition in python prefix with _____ .

  1. function

  2. def

  3. void

  4. func

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

Python function definitions start with the keyword def followed by the function name. Keywords like function, void, and func are used in other programming languages but are invalid for defining functions in Python.