What is the output of the following code:
with open('data.txt', 'r') as file:
lines = file.read().splitlines()
print(len(lines))
lines = file.read().splitlines()
print(len(lines))
What is the output of the following code:with open('data.txt', 'r') as file: Correct Answer The number of lines in data.txt
lines = file.read().splitlines()
print(len(lines))
মোঃ আরিফুল ইসলাম
Feb 20, 2025