In python, is it possible to define overrideable, optional default values, where if you define the value, it doesn’t use the default, but if you don’t, it does?
For example:
def hats(a= 'large', b= 'baseball', c= 'five dollars'):
#method stuff goes here
I know I could define a, and then b and c will default, but could I somehow just define c and have a and b use the defaults?
Like, could I call method hats(NULL, something, something else)
Sure:
will use the default values for
aandb.