Desempacar en Python
#When we create a tuple, we normally assign values to it.
#This is called "packing" a tuple:
#Packing a tuple:
fruits = ("apple", "banana", "cherry")
#But, in Python, we are also allowed to extract the values back into variables.
#This is called "unpacking":
#Unpacking a tuple:
fruits = ("apple", "banana", "cherry")
(green, yellow, red) = fruits
print(green)
print(yellow)
print(red)
Asif Iqbal Paracha