Tuple unpacking (aka "multiple assignment" or "iterable unpacking") is often underutilized by new Python programmers. It's tempting to reach for indexes when working with tuples, lists, and other sequences. But if we know the size/shape of the tuple (or other sequence) we're working with, we can unpack it using
Need to fill-in gaps in your Python skills? I send regular emails designed to do just that.
Sign up for my Python tips emails and I'll share my favorite Python insights with you every couple weeks.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.