Vidyalelo
Python · Q129

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 129

Q129

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=" ")

A.
1: 2: 3:
B.
Exception is thrown
C.
One Two Three
D.
0: One 1: Two 2: Three
Answer

Answer: Option D

Solution

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