title: Beginners Coding Error, While Loop Triggering 2 Messages
body: <p>I am a beginner that just started learning python this Monday and one of the first hurdles I am getting into is while loops. I was trying to code a number guessing game and when I enter the correct answer it will give me &quot;Wrong Guess&quot; and &quot;Correct Guess&quot; as outputs. I have been staring at this problem wondering why this is happening but I can't figure it out. Can someone explain why this is happening? Thanks in advance!</p>
  <pre><code>secret_number = 9
  guess = ''
  i = 0
  while guess != 9 and i &lt; 3:
      guess = int(input(&quot;Guess Number: &quot;))
      i += 1
      print('Wrong Guess!')
  if guess == 9:
      print('Your Correct!')
  if i == 3:
      print('You lost!')
  </code></pre>