Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

optional parameter in python

def to_smash(total_candies, n_friends=3):
    return total_candies % n_friends
  
 #Here n_friends is Optional Parameter
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #optional #parameter #python
ADD COMMENT
Topic
Name
6+3 =