title: Precedence of python input() function
body: <p>I have the following lines (using Spyder 4.1.4):</p>
  <pre><code>arr = np.arange(1,10)
  plt.scatter(arr, arr)
  ans = input('Type yes or no')
  </code></pre>
  <p>I would like the plot to appear <em>before</em> I'm asked to &quot;Type yes or no&quot;, but the opposite occurs.</p>
  <p>Is there something about <code>input</code> that makes it execute before the plot is displayed?</p>