how to put a parameter as optional in python functions code example
Example 1: python create a function with optional parameter
def some_function (self, a, b, c, d = None, e = None, f = None, g = None, h = None):
#code
Example 2: optional arguments python
def some_function (self, a, b, c, d = None, e = None, f = None, g = None, h = None):
#code