with open('Input1.txt') as inp1:
with open('Input2.txt') as inp2:
with open('OutPut.txt', 'w') as out:
out.write(f'{inp1.read()}\n{inp2.read()}')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
with open('Input1.txt') as inp1:
with open('Input2.txt') as inp2:
with open('OutPut.txt', 'w') as out:
out.write(f'{inp1.read()}\n{inp2.read()}')