Python Language Concepts: Pack and Unpack Parameters and Arguments

Start Course
Software Development
Course Length
23 minutes

Course Description

Functions play a large part in Python code, and when you have functions calling other functions, you often need to pass these arguments through multiple layers of function calls. Rather than pass each argument individually, you can "pack" them into a list or dict, which can be passed around and manipulated, and then "unpack" or expand them into individual arguments again. In this course, we'll look at all the different ways to mix and match the various parameter and argument types in Python, and cover the terminology used to talk about them.


  • Students should already be comfortable with Python language fundamentals, including: writing and using classes, methods, and functions, using container objects (e.g., list or dictionary), using decorators, using string formatting, using conditional operators


Michael Dougherty

Michael Dougherty is an experienced full-stack engineer, functional programming aficionado, and musician. When he was 13 he brought a "Learn C++ in 21 days" book with him on a family vacation, and he has been writing code ever since. For the past few years, Michael has worked as a Web Development Mentor, as a Full Stack Senior Software Engineer, as well as on several side projects.