A function in Python is defined using the keyword:
-
A
function
-
B
def
Correct answer
-
C
define
-
D
func
12 views
Explanation
def is used to define a function. The function name is followed by parentheses and a colon. The body is indented.
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