python tuples basics code example
Example 1: tuple in python
#a tuple is basically the same thing as a
#list, except that it can not be modified.
tup = ('a','b','c')
Example 2: what are tuples in python
#A tuple is essentailly a list with limited uses. They are popular when making variables
#or containers that you don't want changed, or when making temporary variables.
#A tuple is defined with parentheses.
Example 3: tuples in python
# the tuples are like the Read-Only they are not to be changed or modified they're constant
letters = "a", "b", "c", "d" # you can use () as they are optional
print(letters)
"""
tuples are immutable but it's important because they don't returns the bugs
these are sequence types means you can iterate over them by it's index numbers
tuples data can't be changed but list's data can be changed
"""