What Will Be The Output Of The Following Python Codep Pre #413
What will be the output of the following Python code?</p> <pre><code class="language-python"> num = ['One', 'Two', 'Three'] for i, x in enumerate(num): print('{}: {}'.format(i, x),end=" ") </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 Lists - Python Lists - Quiz No.8.
What will be the output of the following Python code?
num = ['One', 'Two', 'Three'] for i, x in enumerate(num): print('{}: {}'.format(i, x),end=" ")
1: 2: 3:
Exception is thrown
One Two Three
0: One 1: Two 2: Three