DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+5 =
Submit