title: while loop number sort counter odd vs. evens
body: <p>Hi I am trying to create a program that finds evens and odd numbers. I produce a random number and then separate into odds/evens, count if odd or even and then stop the program when I have 5 more odds than evens. I have an indentation error. Can someone point me in the right direction?</p>
  <pre><code>evens=0
  odds=0
  while odds- evens &gt;= 5:
      def getrandom():
          number= random.randint (1,99)
          return number
  
      digit= random.randint(1,99)
      if digit %2 ==0:
          evens=evens +1
          print (&quot;there are&quot;, evens, &quot;numbers&quot;)
      else:
          odds = odds +1
          print (&quot;there are&quot;, odds, &quot;numbers&quot;)
  </code></pre>