[ ![Real Python](/static/real-python-logo.893c30edea53.svg) ](/)

  * [ Start Here ](/start-here/)
  * Learn Python 

[ Python Tutorials →  
In-depth articles and video courses
](/search?kind=article&kind=course&order=newest) [ Learning Paths →  
Guided study plans for accelerated learning  ](/learning-paths/) [ Quizzes →  
Check your learning progress  ](/quizzes/) [ Browse Topics →  
Focus on a specific area or skill level  ](/tutorials/all/) [ Community Chat →  
Learn with other Pythonistas  ](/community/) [ Office Hours →  
Live Q&A calls with Python experts  ](/office-hours/) [ Podcast →  
Hear what’s new in the world of Python  ](/podcasts/rpp/) [ Books →  
Round out your knowledge and learn offline  ](/products/books/) [ Unlock All
Content → ](/account/join/)

  * More 

[ Learner Stories ](/learner-stories/) [ Python Newsletter ](/newsletter/) [
Python Job Board ](https://www.pythonjobshq.com) [ Meet the Team ](/team/) [
Become a Tutorial Writer ](/write-for-us/) [ Become a Video Instructor
](/become-an-instructor/)

  * [ Search ](/search "Search")

[ ](/search "Search") /

  * [ Join ](/account/join/)
  * [ Sign‑In ](/account/login/?next=%2Fpython-kwargs-and-args%2F)

— FREE Email Series —

🐍 Python Tricks 💌

![Python Tricks Dictionary Merge](/static/pytrick-dict-merge.4201a0125a5e.png)

Get Python Tricks »

🔒 No spam. Unsubscribe any time.

[ Browse Topics ](/tutorials/all/) [ Guided Learning Paths ](/learning-paths/)  
[ Basics ](/search?level=basics) [ Intermediate ](/search?level=intermediate)
[ Advanced ](/search?level=advanced)

* * *

[ api ](/tutorials/api/) [ best-practices ](/tutorials/best-practices/) [
career ](/tutorials/career/) [ community ](/tutorials/community/) [ databases
](/tutorials/databases/) [ data-science ](/tutorials/data-science/) [ data-
structures ](/tutorials/data-structures/) [ data-viz ](/tutorials/data-viz/) [
devops ](/tutorials/devops/) [ django ](/tutorials/django/) [ docker
](/tutorials/docker/) [ editors ](/tutorials/editors/) [ flask
](/tutorials/flask/) [ front-end ](/tutorials/front-end/) [ gamedev
](/tutorials/gamedev/) [ gui ](/tutorials/gui/) [ machine-learning
](/tutorials/machine-learning/) [ numpy ](/tutorials/numpy/) [ projects
](/tutorials/projects/) [ python ](/tutorials/python/) [ testing
](/tutorials/testing/) [ tools ](/tutorials/tools/) [ web-dev
](/tutorials/web-dev/) [ web-scraping ](/tutorials/web-scraping/)

Table of Contents

  * Passing Multiple Arguments to a Function 
  * Using the Python args Variable in Function Definitions 
  * Using the Python kwargs Variable in Function Definitions 
  * Ordering Arguments in a Function 
  * Unpacking With the Asterisk Operators: * & ** 
  * Conclusion 

Mark as Completed

[ ](/feedback/survey/article/python-kwargs-and-args/liked/?from=article-
sidebar "Liked it") [ ](/feedback/survey/article/python-kwargs-and-
args/disliked/?from=article-sidebar "Disliked it")

[ Share ](https://twitter.com/intent/tweet/?text=Check out this %23Python
tutorial: Python%20args%20and%20kwargs%3A%20Demystified by
@realpython&url=https%3A//realpython.com/python-kwargs-and-args/) [ Share
](https://facebook.com/sharer/sharer.php?u=https%3A//realpython.com/python-
kwargs-and-args/) [ Email ](mailto:?subject=Python article for you&body=Check
out this Python
tutorial:%0A%0APython%20args%20and%20kwargs%3A%20Demystified%0A%0Ahttps%3A//realpython.com/python-
kwargs-and-args/)

Recommended Video Course  
[ Python args and kwargs: Demystified ](/courses/python-kwargs-and-args/)

![Python args and kwargs:
Demystified](https://files.realpython.com/media/args-and-kwargs-in-
Python_Watermarked.508ab9494cb5.jpg)

#  Python args and kwargs: Demystified

by  Davide Mastromatteo  [ intermediate ](/tutorials/intermediate/) [ python
](/tutorials/python/)

Mark as Completed

[ Share ](https://twitter.com/intent/tweet/?text=Check out this %23Python
tutorial: Python%20args%20and%20kwargs%3A%20Demystified by
@realpython&url=https%3A//realpython.com/python-kwargs-a