*args and **kwargs in Python

Why *args and **kwargs? A function is useful in generating a reusable code. We call a function using specific arguments called function argument in Python. Now let us try to understand its need. For example in a simple program of multiply two numbers what will happen if we have passed three arguments instead of two. …

*args and **kwargs in Python Read More »