I have two programs say:- a.py and b.py I want to close a.py from b.py when needed and also close b.py from a.py when needed.
I have tried:-