I'm currently having a problem when I run a script that I wrote to tell if two texts files are identical:

```
a="MyOut1.txt"
b="out1.txt"
f1=open(a,'r')
f2=open(b,'r')
l1=f1.readlines()
l2=f2.readlines()
f1.close()
f2.close()
print(l2==l1)

```

When I run the code via terminal I get a False result (even though I expect the files to be the same) and when I run it through python shell it gives me True as you can see:

[![enter image description here](https://i.stack.imgur.com/2npFM.png)](https://i.stack.imgur.com/2npFM.png)