HF RL Explorer

Task: Implement In-Place File Line Modification in Python

Task: Implement In-Place File Line Modification in Python: a task in Terminal-Lego-15k (Harbor dataset). Your task is to create a Python script that demonstrates how to modify lines in a file "in-place" - that is, reading a file line by line and editing specific lines while processing the file.

The task

Your task is to create a Python script that demonstrates how to modify lines in a file "in-place" - that is, reading a file line by line and editing specific lines while processing the file.

Part of PrimeIntellect/Terminal-Lego-15k.