Question 11
Consider the following Python code:
with open("data.txt", "w") as f:
for i in range(3):
for j in range(i + 1):
f.write(f"Line {i}-{j}" + ("\n" * (j + 1)))
with open("data.txt", "r") as f:
count = len(f.readlines())
print(count)
What is the output of the given code?