Single Choice Not Set

QWhat will be the output after the following statements?
print([(x, x*2) for x in range(4)])

ID: #3878 Python Functions MCQ 333 views
Question Info
#3878Q ID
Not SetDifficulty
Python Functions MCQTopic

Choose the Best Option

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

  • A [(0, 0), (1, 2), (2, 4), (3, 6)]
  • B [(0, 0), (1, 2), (2, 4), (3, 6), (4, 8)]
  • C [(1, 2), (2, 4), (3, 6), (4, 8)]
  • D [(1, 2), (2, 4), (3, 6)]
Correct Answer

Explanation

[(0, 0), (1, 2), (2, 4), (3, 6)]

Share This Question

Challenge a friend or share with your study group.