---
title: "Discussion on \"Difference between *args and **kwargs in python\" | Hashnode"
description: "Discussion on \"Difference between *args and **kwargs in python\". In any programming language we make a function to perform certain task. Sometimes we don’t know how many arguments will come from user sites, In that case we use *args.\ndef function_args(*args):\n    for i in args:\n        print(i)\ncall function with ..."
url: "https://hashnode.com/posts/difference-between-args-and-kwargs-in-python/60041039848f4c3b9a0efe7e"
---

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

Discussion

# [Difference between \*args and \*\*kwargs in python](https://jaypratap.hashnode.dev/difference-between-args-and-kwargs-in-python?utm_source=hashnode&utm_medium=feed)

In any programming language we make a function to perform certain task. Sometimes we don’t know how many arguments will come from user sites, In that case we use \*args. def function\_args(\*args): for i in args: print(i) call function with ...

Jan 17, 2021 · 1 min read · jaypratap.hashnode.dev  
Read the article

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

## Written by

[Jay pratap](https://hashnode.com/@jaypratap)

@jaypratap

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

Python Developer

Python Developer | Machine Learning | Django |

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
