Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

make parameter optional python

def myfunc(a,b, *args, **kwargs):
   for ar in args:
      print ar
myfunc(a,b,c,d,e,f)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parameter #optional #python
ADD COMMENT
Topic
Name
2+5 =