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.
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.
The targets of unpacking are…
Self-taught programmer. Lifelong learner.