---
title: "Discussion on \"Write functions with a variable number of arguments in Python using *args and **kwargs\" | Hashnode"
description: "Discussion on \"Write functions with a variable number of arguments in Python using *args and **kwargs\". *args collects extra positional arguments as a tuple. \n\n**kwargs - collects the extra keyword arguments as a dictionary."
url: "https://hashnode.com/posts/write-functions-with-a-variable-number-of-arguments-in-python-using-args-and-kwargs/5f821ccd7762251b305d945a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Write functions with a variable number of arguments in Python using \*args and \*\*kwargs](https://arjuns2020.hashnode.dev/write-functions-with-a-variable-number-of-arguments-in-python-using-args-and-kwargs?utm_source=hashnode&utm_medium=feed)

\*args collects extra positional arguments as a tuple. \*\*kwargs - collects the extra keyword arguments as a dictionary.

Oct 10, 2020 · 1 min read · arjuns2020.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[Arjun](https://hashnode.com/@arjuns2020)

@arjuns2020 · USA

  
[View profile](https://hashnode.com/@arjuns2020)

Data Scientist

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
