Q9Single correct3 Marks28 Apr 2024
Consider the code given below. What is the content present in the file output.txt after the execution of the code?
f = open('output.txt', 'w')
f.write('apple')
f.write('banana')
f.write('cat')
f.write('dog')
f.write('elephant')
f.close()