-
-
Save IndhumathyChelliah/62a7c932a12d2b5a63004018609dcfa7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
l1=[1,2,3,4,5] | |
#returns an iterator | |
l2=iter(l1) | |
print (l2)#Output:<list_iterator object at 0x00EAE658> | |
#calling iter() function on iterator itself. | |
l3=iter(l2) | |
print (l3)#Output:<list_iterator object at 0x00EAE658> | |
print (l2==l3)#Output:True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment