Run algorithm
Each step highlights the matching Python line. Program output appears only when a line that prints actually runs.
Ready
input.txt
1with open("input.txt", "r") as f:
2lines = f.readlines()
3print(len(lines))
Output: