Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python default value

def f(name='Hello Guest'):
    print(name or f.__default__[0])


def A(name=None):    
    f(name)

A()
# Hello Guest
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #default
ADD COMMENT
Topic
Name
7+8 =