Here's an example:
# I want to stop function parent() from function child().
def parent():
def child():
print('A')
returnparent # Or something along the lines
child()
print('B')
parent()Wanted output:Output:AActual output(without the returnparent):Output:A
BIs there a statement or function that serves this purpose?
