In Python, which keyword is used to define a function?
-
A
function
-
B
def
Correct answer
-
C
define
-
D
func
14 views
Explanation
The def keyword begins a function definition. Source: Standard Python content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ