Created
March 11, 2016 00:32
-
-
Save kylieCat/0259e11ee5f8d36b7754 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
l = ['a','b', 'c'] | |
for index, value in enumerate(l): | |
print("The value at index {} is {}".format(index, value) | |
# Output | |
# The value at index 0 is a | |
# The value at index 1 is b | |
# The value at index 2 is c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment