Python - File Reading and Writing Strategies
What will be the output of this code if 'sample.txt' contains:\nHello\nWorld\nPython\n?
with open('sample.txt') as f:
for line in f:
print(line.strip())