What Will Be The Output Of The Following Python Codep Pre #670
What will be the output of the following Python code?</p> <pre><code class="language-python"> def display(b, n): while n > 0: print(b,end="") n=n-1 display('z',3) </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Functions - Python Function - Quiz No.4.
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)
zzz
zz
An exception is executed
Infinite loop