HF RL Explorer

Task: Extract Substring Before a Colon in Python

Task: Extract Substring Before a Colon in Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that extracts all characters before the first : (colon) in a given string. The script should handle multiple input strings and write the results to an output file.

The task

Write a Python script that extracts all characters **before** the first `:` (colon) in a given string. The script should handle multiple input strings and write the results to an output file.

Part of PrimeIntellect/Terminal-Lego-15k.