how to create tuple in python
# Let's have a look here first.
coffee = (3.14,) # coffee is a VARIABLE, 3.14 is a FLOAT NUMBER
# What is the TYPE inside the VARIABLE coffee?
#Let's see
print(type(coffee)) #It will print what TYPE the VARIABLE it is
# It will print: <class 'tuple'>
# Why it printed <class 'tuple'> and not <class 'float'>???
# ANSWER: #
# Because we put the comma --> , <-- after the 3.14
# That's why it became a tuple type. (not a float type)
# HOW TO CREATE a TUPLE?
# To create a tuple, create a Parenthesis --> () <--
# Then add value inside, for example I add 4 inside the parenthesis --> (4) <--
# Last, add comma --> , <-- like this --> (4,) <--
# Then add more like this --> (4, 5) <--
# If you want to add more, just use --> , <-- like this --> (4, 5, 6) <--
# Wait, I don't understand, what's the purpose of TUPLE?
# it let you store an ordered sequence of items.
# It's similar to LIST but data inside the TUPLE can't be change.
# NOTES
# STRING is also possible in TUPLE
food = ('cake', 'cupcake', 1997, 2000);
# As you can see, the 'cake' and 'cupcake' are STRINGS, while 1997 and 2000 are INTEGER NUMBERS.