title: End/Quitting a function right after it calls another function
body: <p>a beginner learning python</p>
  <p>So, suppose I have 2 functions, A n B</p>
  <pre class="lang-py prettyprint-override"><code>A():
    calls B()
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>B():
    usual procedures, #has return values; 
  </code></pre>
  <p>But when a condition is met:
  `B calls A();
  # I want function B() to stop/quit and not return anything immediately after calling A() as a new process of A() starts</p>
  <p>Is this possible? And safe?
  Would it be possible through multithreading, which I still haven't learnt</p>