Lists, in Python, are a collection of values that are stored in a specific order. These values can be changed. But, sometimes you want the values to be permanent, without the possibility of changing them. For that, you create a tuple. A tuple is an immutable list. Example:
numbers = (2, 4, 6)
print(numbers)
Output:
(2, 4, 6)
-------------------------Subscribe----------------------------
• If you like to see a variety of fun and interactive projects written in Python
• If you love ☕ and 🐶 WAIT! - Yeah! Definitely, coffee and dogs!
-----------------------------------------------------------------------
-------------------------Socials----------------------------
• Twitter: / iftodd1
• Facebook: / iftodd
• Instagram: / if_todd
------------------------------------------------------------------
-------------------------Support----------------------------
You can support me here: / if_todd
--------------------------------------------------------------------
What is a tuple? #python #shorts #tuple