Single Choice Not Set

QWhat will be the output after the following statements?
x = ['P', 'y', 't', 'h', 'o', 'n']
for i in enumerate(x):
    print(i, end='')

ID: #3527 Python for Loop MCQ 247 views
Question Info
#3527Q ID
Not SetDifficulty
Python for Loop MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A ('P')('y')('t')('h')('o')('n')
  • B python
  • C (0, 'P')(1, 'y')(2, 't')(3, 'h')(4, 'o')(5, 'n')
  • D p0ython
Correct Answer

Explanation

(0, 'P')(1, 'y')(2, 't')(3, 'h')(4, 'o')(5, 'n')

Share This Question

Challenge a friend or share with your study group.