I'd like to make a function behave in a certain way if it's called by a specific function.
For example:
def addition(a, b):
math_operations(a, b)
def math_operations(a, b):
if this function is called by addition(a, b):
return a + b
else:
return a * b
Is something like this even possible?