Here is my original code. f = open("p3.in","r") while True: n = f.readline() print(n) if n == 0: break Map = [[0 for i in range(n)] for
Read the first two lines from a text file named "file1.txt" Write the two lines read from "file1.txt" to a new file "file2.txt"