Q. Which Python keyword is used to define a function?

A
class
B
def
C
return
D
lambda
Solution:

The def keyword is used to define a function in Python, followed by the function name and parameters.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!