Q. What is the output of this code?
Code:
print(list(range(1,5)))
β
Correct Answer: (B)
[1, 2, 3, 4]
Explanation: `range(1,5)` generates numbers from 1 up to 4.