Last active
May 22, 2020 02:06
-
-
Save slingam00/5162b4a549c38ac83bdb2e3afaf18d96 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
myTuple1 = (1, 2, 3, 4, 5) | |
myTuple2 = ('a', 1, 'b', 2, 'c', 3') | |
# Indexing | |
print(myTuple1[2]) # Result is 3 | |
# Range Indexing | |
print(myTuple1[2:4]) # Result is (3, 4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment