Skip to content

Instantly share code, notes, and snippets.

@slingam00
Last active May 22, 2020 00:32
Show Gist options
  • Save slingam00/955073467fbc3adafee67bd5ae531860 to your computer and use it in GitHub Desktop.
Save slingam00/955073467fbc3adafee67bd5ae531860 to your computer and use it in GitHub Desktop.
myList = [1, 2, 3, 4, 5]
# List Indexing
print(myList[0]) # Result: 1
print(myList[2]) # Result: 3
print(myList[4]) # Result: 5
print(myList[-1]) # Result: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment