Report Bug

Qus

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)
Qus

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def display(b,n):
    while n>0:
        print(b,end='')
        n=n-1
display('z',3)


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


Solution
A. zzz



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad