Skip to content

Instantly share code, notes, and snippets.

@kylieCat
Created March 11, 2016 00:32
Show Gist options
  • Save kylieCat/0259e11ee5f8d36b7754 to your computer and use it in GitHub Desktop.
Save kylieCat/0259e11ee5f8d36b7754 to your computer and use it in GitHub Desktop.
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