Vidyalelo
Python · Q12

Formatting and Decorators

Programming · Python · question 12

Q12

What will be the output of the following Python code? def f(x): def f1(a, b): print("hello") if b==0: print("NO") return return f(a, b) return f1 @f def f(a, b): return a%b f(4,0)

A.
hello
NO
Answer
B.
hello
Zero Division Error
C.
NO
D.
hello

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board