निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following?
print((range(4)))
A
0,1,2,3
B
[0,1,2,3]
C
range(0,4)
D
(0,1,2,3)
Explanation
In Python 3, range(4) produces a range object, which is a sequence of numbers from 0 to 3, but not a list. So, when you print range(4), it shows the object representation, like range(0, 4).
Answer: (C) range(0,4)
Correct Answer: C) range(0,4)