Skip to content

Instantly share code, notes, and snippets.

@bhoggard
Last active March 16, 2023 20:27
Show Gist options
  • Save bhoggard/36af3400cb2a337625f4cd03774ad9ff to your computer and use it in GitHub Desktop.
Save bhoggard/36af3400cb2a337625f4cd03774ad9ff to your computer and use it in GitHub Desktop.
Python notes
# reversing array/list
mylist[::-1]
# slices are up to, not including, 2nd number
list = [1,2,3,4,5]
list[1:3] # => [2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment