Task: Replace Whitespaces with Underscore in Python
Task: Replace Whitespaces with Underscore in Python: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python script that replaces all whitespace characters with underscores in a given string. This is a common task when creating URL-friendly strings (slugs).
Part of PrimeIntellect/Terminal-Lego-15k.