python functions can have optional arguments true or false code example
Example: optional parameter in python
def to_smash(total_candies, n_friends=3):
return total_candies % n_friends
#Here n_friends is Optional Parameter
def to_smash(total_candies, n_friends=3):
return total_candies % n_friends
#Here n_friends is Optional Parameter