Programming Language Python List MCQ Question #3888
Single Choice Not Set

QWhat will be the output after the following statements?
x = [i**2-3 for i in range(0,7,3)]
print(x)

ID: #3888 Python List MCQ 175 views
Question Info
#3888Q ID
Not SetDifficulty
Python List MCQTopic

Choose the Best Option

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

  • A [-3, 6, 33]
  • B [0, 1, 2, 3, 4]
  • C [-3, -2, 0, 2, 3]
  • D [-3, 9, 18, 36]
Correct Answer

Explanation

[-3, 6, 33]

Share This Question

Challenge a friend or share with your study group.