Skip to content

Instantly share code, notes, and snippets.

@jamespaultg
Created May 20, 2020 11:18
Show Gist options
  • Save jamespaultg/dfb13e50de8cf5b601e2510b8fc85762 to your computer and use it in GitHub Desktop.
Save jamespaultg/dfb13e50de8cf5b601e2510b8fc85762 to your computer and use it in GitHub Desktop.
use of enumerate in loops
# just to check the enumerate functionality on lists
temp_list = ['a','b','c']
for i,val in enumerate(temp_list):
print(i, val)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment