Skip to content

Instantly share code, notes, and snippets.

@bolerap
Created November 3, 2016 04:18
Show Gist options
  • Save bolerap/e7af21b776415714e46104c0d35e70e5 to your computer and use it in GitHub Desktop.
Save bolerap/e7af21b776415714e46104c0d35e70e5 to your computer and use it in GitHub Desktop.
a = [1, 2, 3, 4, 5]
print(a[0], a[-1]) # 1 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment