Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

default arguments

def get_student(name, grade='Five', age):
    print(name, age, grade)

# output: SyntaxError: non-default argument follows default argument
Source by pynative.com #
 
PREVIOUS NEXT
Tagged: #default #arguments
ADD COMMENT
Topic
Name
2+5 =