[Tutor] How to better understand args and kwargs
Bhaskar Jha
bhaskarjha.dev.001 at gmail.com
Sat Jul 24 10:43:32 EDT 2021
Hello,
I am a newbie with Python. And, I want to understand what's the use of args
and kwargs.. i understand that these are used when we do not know the
number of arguments that will be passed.. but how is args different from
kwargs.. and, why do we allow for a situation when someone can pass
unlimited arguments to a function.. other languages such as C++ do not make
provisions for this. So, why does Python do it?
Kind Regards
Bhaskar
More information about the Tutor
mailing list