Which Python keyword is used to define a function?
-
A
function
-
B
define
-
C
def
Correct answer
-
D
func
17 views
Explanation
The 'def' keyword is used to define functions in Python, followed by the function name and parameters.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ