title: Comparing certain line of text file with input
body: <p>I need code which compares the input to line 2 of a text file. I have started writing the code but it is not working, I now it is wrong on the 3rd line but don't know what to do.</p>
  
  <pre><code>Name = input("Enter name: ")
  with open("numbers") as MyFile:
        if line 2 == Name:
           print ("correct") 
  </code></pre>