Tag: Python : *args | How to pass multiple arguments to function ?
Python : *args | How to pass multiple arguments to function ?
In this article we will discuss how to define a function in python that can accept variable length arguments. Suppose we have a function to calculate the average of 3 numbers i.e. Advertisements def average(a , b, c): ”’ Function To calculate the average of 3 numbers ”’ return (a+b+c)/3 Now let’s use this function, …
Python : *args | How to pass multiple arguments to function ?Read More