Examveda
Examveda

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

B. zz

C. An exception is executed

D. Infinite loop

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python