Skip to content

Instantly share code, notes, and snippets.

@kabirahuja2431
Created October 3, 2019 15:13
Show Gist options
  • Save kabirahuja2431/dacf164a300b5f2973a1faf364bf9050 to your computer and use it in GitHub Desktop.
Save kabirahuja2431/dacf164a300b5f2973a1faf364bf9050 to your computer and use it in GitHub Desktop.
itr1 = range(0,5)
itr2 = range(1,6)
itr3 = zip(itr1, itr2)
for i in itr3:
print(i)
'''
Prints
(0,1)
(1,2)
(2,3)
(3,4)
(4,5)
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment