Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created June 2, 2023 16:58
Show Gist options
  • Save moulik-source/a55865cd6b296fb9b4ff173fd900fb7a to your computer and use it in GitHub Desktop.
Save moulik-source/a55865cd6b296fb9b4ff173fd900fb7a to your computer and use it in GitHub Desktop.
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