Which keyword is used to define a function in Python?
Correct answer
C. def
5 views
C. def
5 views
Functions in Python are defined with the def keyword, followed by the name and parameters.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is C? Ask here and get an explanation.