Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Abhayparashar31/7f94d05f7fb186dd0b4b806a186dfe97 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/7f94d05f7fb186dd0b4b806a186dfe97 to your computer and use it in GitHub Desktop.
arr = [2,4,6,3,8,10]
for index,value in enumerate(arr):
print(f"At Index {index} The Value Is -> {value}")
'''Output
At Index 0 The Value Is -> 2
At Index 1 The Value Is -> 4
At Index 2 The Value Is -> 6
At Index 3 The Value Is -> 3
At Index 4 The Value Is -> 8
At Index 5 The Value Is -> 10
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment