Run algorithm
Each step highlights the matching Python line. Program output appears only when a line that prints actually runs.
Ready
input.txt
output.txt
1with open("input.txt") as fin:
2data = fin.read().upper()
3with open("output.txt", "w") as fout:
4fout.write(data)
5print("output.txt written")
Output: