title: Inconsistent Output in Google Colab
body: <p>I have the following basic code in Google Colab:</p>
  <pre><code>from random import *
  
  number = randint(1, 100)
  
  guess = int(input(&quot;Enter a guess: &quot;))
  
  while guess != number:
    if guess &gt; number:
      print(&quot;Enter a smaller value&quot;)
    else:
      print(&quot;Enter a greater value&quot;)
    guess = int(input(&quot;Enter a guess: &quot;))
    
  print(&quot;You guessed the number&quot;)
  </code></pre>
  <p>This loop continues until we guess the number correctly. And after each guess, program directs us for the next guess (like enter smaller/greater number).</p>
  <p>Sometimes, I get some inconsistency in the outputs. After I enter a wrong number as input, it should direct me with an output.</p>
  <p><a href="https://i.stack.imgur.com/qfHDW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qfHDW.png" alt="enter image description here" /></a></p>
  <p>After I enter 40 as input, it does not show me the output as shown above. But after I enter the next input (42), it fixes the output screen and shows the missing output as below.</p>
  <p><a href="https://i.stack.imgur.com/yhCb3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yhCb3.png" alt="enter image description here" /></a></p>
  <p>What might be the problem? It is happening all the time.</p>