HF RL Explorer

Task: Check if a String Contains a Number

Task: Check if a String Contains a Number: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that checks whether a given string contains any numeric digits. Unlike the isdigit() method which returns True only if ALL characters are digits, your solution should detect if there is…

The task

Create a Python script that checks whether a given string contains any numeric digits. Unlike the `isdigit()` method which returns `True` only if ALL characters are digits, your solution should detect if there is **at least one digit** anywhere in the string.

Part of PrimeIntellect/Terminal-Lego-15k.