Computer >> Computer tutorials >  >> Programming >> Python

What is correct name of * operator available in Python?


The *args argument is called the "variable positional parameter" and **kwargs is the "variable keyword parameter". The * and ** arguments just unpack their respective data structures. 

example

def func(a, b, c):
   return a + b + c
args = (1, 2, 3)
print(func(*args))

Output

This will give the output −

6