Is there function in Python to can return control to the invoking script or function, similar to the function return in MATLAB?
Does the function exit() or quit() in Python do the same thing?
def absolute_value(num):
"""This function returns the absolute
value of the entered number"""
if num >= 0:
# Return to the invoking script without any return value
else:
# Do task A
# Do task B
print(absolute_value(2))
print(absolute_value(-4))