in python, i am pustin two star before paramerter what is that men code example
Example 1: in python, i am pustin two star before paramerter what is that men
>>> mylist = [1,2,3]
>>> foo(*mylist)
x=1
y=2
z=3
>>> mydict = {'x':1,'y':2,'z':3}
>>> foo(**mydict)
x=1
y=2
z=3
>>> mytuple = (1, 2, 3)
>>> foo(*mytuple)
x=1
y=2
z=3
Example 2: in python, i am pustin two star before paramerter what is that men
def foo(x,y,z):
print("x=" + str(x))
print("y=" + str(y))
print("z=" + str(z))