Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pustin #star #paramerter #men
ADD COMMENT
Topic
Name
8+5 =