notebook.community
Edit and run
In [4]: lines1 = [] with open('1', 'r') as file1: for line in file1: lines1.append(line.strip()) lines2 = [] with open('2', 'r') as file2: for line in file2: lines2.append(line.strip())
lines1 = [] with open('1', 'r') as file1: for line in file1: lines1.append(line.strip()) lines2 = [] with open('2', 'r') as file2: for line in file2: lines2.append(line.strip())