Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a function input optional in python

#*args makes it so that you can use any amount of variables
def function(variable1, variable2, *args):
#for example the print function can start with: def print(*args)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #function #input #optional #python
ADD COMMENT
Topic
Name
7+3 =