Explanation:Execute in the shell and verify. 4. 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]
D. [0.0, 0.5, 1.0, 1.5, 2.0]
Answer:A
Explanation:Execute in the shell and verify. 4. 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] D. [0.0, 0.5, 1.0, 1.5, 2.0]
Explanation:Execute in the shell to verify.