Run Program ❯
Python Home
❯
Run Code
Change Orientation
# Unpacking a tuple coordinates = (100, 200) x, y = coordinates print("Tuple Unpacking:") print("x =", x) print("y =", y) # Unpacking a list person = ["Alice", 30, "Engineer"] name, age, profession = person print("\nList Unpacking:") print("Name:", name) print("Age:", age) print("Profession:", profession)