<span>Photo by <a href=”https://unsplash.com/@ikukevk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyT
<span>Photo by <a href=”https://unsplash.com/@ikukevk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyT
Photo by Kevin Ku on Unsplash

Python has clean and concise coding style, sometimes we call it ‘pythonic’. Among those pythonic coding, unpacking is a powerful and extremely common technique which can be seen everywhere in Python, sometimes you have not even noticed. In this article, we will discuss several topics to cover the usage of unpacking, and then look into how we pass arguments to a function in Python.

Basic Prerequisites

Before we enter the topic, here are some concepts we need to be very clear with. If you are comfortable with those concepts, please jump into the next section directly.

Iterable:

The targets of unpacking are…

jerry31539

Self-taught programmer. Lifelong learner.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store