title: Why is this python code running twice
body: <p>Here is the code</p>
  
  <pre><code>import random
  
  print("Hello", end="")
  print("twice")
  </code></pre>
  
  <p>and a screenshot of the code</p>
  
  <p><a href="https://i.stack.imgur.com/CzBfJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CzBfJ.png" alt="enter image description here"></a></p>
  
  <p>When I execute this code it for some reason is running twice. The problem seems to be from the <strong>import random</strong> statement, because if I either remove that statement or import some other module it works fine.</p>
  
  <p>What could be the reason for this, should I reinstall Python on my system.</p>