निम्नलिखित पायथन कोड पर विचार करें:
def myDiv(x, y): if
y = = 0:
raise ZeroDivisionError
return x/y
What is the output of the following?
n = myDiv(4,0)
print(n)
1
0.0
2
No output
3
ZeroDivisionError
4
ValueError
def myDiv(x, y): if
y = = 0:
raise ZeroDivisionError
return x/y
What is the output of the following?
n = myDiv(4,0)
print(n)