title: My if variable is not triggering
body: <p>I am trying to make a quiz using python which reads questions from a text file. I have a variable called <code>ans</code> which is supposed to be the answer which it reads from the file I print the variable and it says what its supposed to say but if I actually type it in it will say its wrong.
  This is my python code:</p>
  
  <pre><code>right = 0
  wrong = 0
  num = 0
  quest = 0
  history = open("history.txt", "r")
  lines = history.readlines()
  while quest != 3:
      quest = quest+1
      num = num+1
      print("Question", quest)
      question = lines[num]
      print(question)
      num = num + 1
      ans = lines[num]
      print(ans)
      answer = input()
      answer = answer.lower()
      if answer == ans:
          print("correct")
          right = right+1
      else:
          print("Wrong")
          wrong = wrong+0
  print("done")
  </code></pre>
  
  <p>And my history.txt file is formatted like this</p>
  
  <pre><code>Blank Line Blank Line
  What is the capital of England?
  london
  What is 1+1?
  2
  </code></pre>
  
  <p>Thank you. </p>