Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 23, 2020 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/77b61ba15d4b495ec0e8f3cc420c3ad2 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/77b61ba15d4b495ec0e8f3cc420c3ad2 to your computer and use it in GitHub Desktop.
l1=['red','green','blue']
l2=iter(l1)
#unpacking an iterator.
a,b,c=l2
print (a)#Output:red
print (b)#Output:green
print (c)#Output:blue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment