HF RL Explorer

Task: Append Text to a File in Python

Task: Append Text to a File in Python: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that appends a new line of text to an existing .txt file. The file already contains a list of animals, and you need to add a new animal to the end of the file.

The task

You need to write a Python script that appends a new line of text to an existing `.txt` file. The file already contains a list of animals, and you need to add a new animal to the end of the file.

Part of PrimeIntellect/Terminal-Lego-15k.