Created
June 2, 2023 16:58
-
-
Save moulik-source/a55865cd6b296fb9b4ff173fd900fb7a 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
my_tuple = (1, 2, 3, 4, 5) # a tuple of integers | |
print(my_tuple) # (1, 2, 3, 4, 5) | |
my_tuple2 = ('apple', 'banana', 'cherry') # a tuple of strings | |
print(my_tuple2) # ('apple', 'banana', 'cherry') | |
my_tuple3 = (1, 'apple', True, 3.14) # a tuple with mixed data types | |
print(my_tuple3) # (1, 'apple', True, 3.14) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment