Python-for-Geeks/Chapter04/files/multifilesread1.py
2021-08-13 11:44:51 +05:30

5 lines
129 B
Python

#multifilesread1.py
with open("1.txt") as file1, open("2.txt") as file2:
print(file2.readline())
print(file1.readline())