Difference between *args and **kwargs | Sololearn: Learn to code for FREE!

0

Difference between *args and **kwargs

5/9/2020 7:02:01 AM

srinu

2 Answers

New Answer

+3

Hello srinu, *args passes variable number of non-keyworded arguments list and on which operation of the list can be performed. while **kwargs passes variable number of keyword arguments dictionary to function on which operation of a dictionary can be performed.

+1

Hello! 🙂 https://www.google.ro/amp/s/www.geeksforgeeks.org/args-kwargs-python/amp/