Single Choice Not Set

QWhat will be the output after the following statements?
x = [int(i/2-5) for i in range(3,8,2)]
print(x)

ID: #3891 Python Functions MCQ 344 views
Question Info
#3891Q ID
Not SetDifficulty
Python Functions MCQTopic

Choose the Best Option

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

  • A [-3, -2, -1]
  • B [0, 2, 6]
  • C [0, 1, 2]
  • D [-3, -1, 3]
Correct Answer

Explanation

[-3, -2, -1]

Share This Question

Challenge a friend or share with your study group.