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:A
Actual output(without the returnparent):Output:A
B
Is there a statement or function that serves this purpose?