Vidyalelo
Python · Q71

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 71

Q71

Suppose list1 = [0.5 * x for x in range(0, 4)], list1 is:

A.
[0, 1, 2, 3]
B.
[0, 1, 2, 3, 4]
C.
[0.0, 0.5, 1.0, 1.5]
Answer
D.
[0.0, 0.5, 1.0, 1.5, 2.0]

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board