title: How do I display the code as "you have 1 more attempt" instead of displaying "you have 2 more attempts" twice?
body: <p>The issue I have is that it displays you have 2 more attempts twice after the first attempt. How do I edit the code, so that it displays: &quot;you have 2 more attempts&quot; and &quot;you have 1 more attempt&quot;?</p>
  <pre><code>answer_count = 0
  answer_limit = 3
  while answer_count &lt; answer_limit:
  answer = input('what is 2 + 2? ') 
  answer_count +=1
  if answer != &quot;4&quot;:
      print('incorrect, you have 2 more attempts') 
  elif answer == &quot;4&quot;:
      print('correct')
      break
  else:
      print('sorry you are out of attempts')
  </code></pre>