Run algorithm
Each step highlights the matching Python line. Program output appears only when a line that prints actually runs.
Ready
input.txt
to be or not to be
1with open("input.txt") as f:
2text = f.read()
3print(len(text.split()))
Output: