Single Choice Not Set

QWhat will be the output after the following statements?
x = ['p', 'y', 't', 'h', 'o', 'n']
y = ['0', '1', '2', '3', '4', '5']
for i in zip(x, y):
    print(i, end='')

ID: #3530 Python for Loop MCQ 367 views
Question Info
#3530Q 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 0 1 2 3 4 5
  • C ('p', '0')('y', '1')('t', '2')('h', '3')('o', '4')('n', '5')
  • D (0, 'P')(1, 'y')(2, 't')(3, 'h')(4, 'o')(5, 'n')
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.