Last active
March 16, 2023 20:27
-
-
Save bhoggard/36af3400cb2a337625f4cd03774ad9ff to your computer and use it in GitHub Desktop.
Python notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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