HF RL Explorer

Task: Remove Multiple Spaces in a String

Task: Remove Multiple Spaces in a String: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that replaces multiple consecutive spaces in a string with a single space. The solution should handle any number of consecutive spaces and reduce them to exactly one space.

Part of PrimeIntellect/Terminal-Lego-15k.