HF RL Explorer

Task: Replace First Occurrence of a Substring in Python

Task: Replace First Occurrence of a Substring in Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that replaces only the first occurrence of a given substring within a larger string, leaving all subsequent occurrences unchanged.

Part of PrimeIntellect/Terminal-Lego-15k.