HF RL Explorer

Task: Check if a String is Empty in Python

Task: Check if a String is Empty in Python: a task in Terminal-Lego-15k (Harbor dataset). In Python, there is no built-in string.empty constant like in some other languages. Your task is to create a Python utility module that provides elegant ways to check if a string is empty or contains only…

The task

In Python, there is no built-in `string.empty` constant like in some other languages. Your task is to create a Python utility module that provides elegant ways to check if a string is empty or contains only whitespace.

Part of PrimeIntellect/Terminal-Lego-15k.