Examveda
Examveda

What will be the output of the following Python function?
def f(p, q):
	return p%q
f(0, 2)
f(2, 0)

A. 0
0

B. Zero Division Error
Zero Division Error

C. 0
Zero Division Error

D. Zero Division Error
0

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators