Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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