Examveda

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: Option D


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python