Q5Single correct3 Marks13 Apr 2025
What will be the output of the following program when "test.txt" contains:
Hello world
Python is great
File handling is useful
Consider the following code snippet:
```
with open("test.txt", "w") as file:
file.write("New Line1\n")
file.write("New Line2\n")
with open("test.txt", "r") as file:
print(len(file.readlines()))
```