Professor "Look, here is a 'lucky bag tuple'." bag = (42, 99) print(bag) Mika "(42, 99), right? I wonder what's inside." Professor "It's just two numbers, but it's a fine lucky bag." ...
description Have you ever noticed as you learn more and more of a programming language, you often forgo the basics for a more complex solution? Well, today I was reminded of the KISS principle when I ...
# we initialize tuple we assign objects to it - this is known as packing a tuple # extracting objects from tuple and assign them to variables is unpacking a tuple print("\n* packing and unpacking ...