So, within a function I would like to test for the presence of an argument the function is expecting. If there is an argument, do this, if no argument is sent form the calling programme and none is received into the function do that.
def do_something(calculate):
if calculate == something expected:
do this
elif calculate not sent to function:
do that
So what would be the logical test/expression I'd need to check for to test if no argument was received into the function please?
calculateis mandatory.