I am trying to use the reversed
function on a list and I am having trouble with the return value.
s=[0,1,2,3]
print(reversed(s))
This returns this line:
<list_reverseiterator object at 0x000001488B6559A0>
I know the reversed()
function returns an iterator object. Can someone elaborate more on 'iterator object'?