Vidyalelo
Python · Q25

Functions in Python

Programming · Python · question 25

Q25

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)

A.
zzz
Answer
B.
zz
C.
An exception is executed
D.
Infinite loop

Answer: Option A

Solution

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