DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python function parameters default value
def F(a, b=None): if b is None: b = [] b.append(a) return b
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#function
#parameters
#default
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit