python specify default argument based on boolean code example Example: python default arguments def your_function(arg,kwarg='default'): return arg + kwarg