Task: Split Strings into Words with Multiple Delimiters
Task: Split Strings into Words with Multiple Delimiters: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that splits a text string into a list of words, handling multiple punctuation marks and delimiters. Python's built-in str.split() method only accepts a single delimiter, so…
The task
Create a Python script that splits a text string into a list of words, handling multiple punctuation marks and delimiters. Python's built-in `str.split()` method only accepts a single delimiter, so you need to implement a solution that can handle multiple word boundary delimiters (such as spaces, commas, hyphens,…
Part of PrimeIntellect/Terminal-Lego-15k.