you may be experiencing a difference in line terminator.
Before comparing lines, use strip, after line 12, add:
try that
Actually that's not going to work here, but keep it in mind.
Before comparing lines, use strip, after line 12, add:
x = x.strip()
try that
Actually that's not going to work here, but keep it in mind.