Created
May 20, 2020 11:18
-
-
Save jamespaultg/dfb13e50de8cf5b601e2510b8fc85762 to your computer and use it in GitHub Desktop.
use of enumerate in loops
This file contains hidden or 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
| # 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