Tag: basics

Tuple Unpacking

Tuple Unpacking

Something few beginning Python programmers know about is tuple unpacking. This allows you to do fun stuff like returning multiple values from a function. Everyone knows how to create a tuple, right?

Well using tuple unpacking, you can get all values from a tuple in one expression and store them in their own variables.

+ Read More