Created
March 1, 2022 09:05
-
-
Save alikarimi120/355847747bca2f77345a65c1c24e220a to your computer and use it in GitHub Desktop.
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
xs = [3, 1, 2] # Create a list | |
print(xs, xs[2]) | |
print(xs[-1]) # Negative indices count from the end of the list; prints "2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment