?
What will be the output of the following Python code?
What will be the output of the following Python code?
>>> a=(0,1,2,3,4)
>>> b=slice(0,2)
>>> a[b]
>>> a=(0,1,2,3,4)
>>> b=slice(0,2)
>>> a[b]
Join the Discussion
Login to post a comment or share your explanation.
Login