What will be the output of the following Python code?
def display(b, n):
while n > 0:
print(b,end="")
n=n-1
display('z',3)
def display(b, n):
while n > 0:
print(b,end="")
n=n-1
display('z',3)A. zzz
B. zz
C. An exception is executed
D. Infinite loop
Answer: Option A

Join The Discussion