HF RL Explorer

Write a Python function to lower(text) that accepts a single argument of any type and returns a lower-case…

Write a Python function to lower(text) that accepts a single argument of any type and returns a lower-case…: a task in repo2rlenv-r2e (Harbor dataset). Behavior requirements: - The function signature is def to lower(text: Any) - str . - Any input value is first converted to its string…

The task

Behavior requirements: - The function signature is `def to_lower(text: Any) -> str`. - Any input value is first converted to its string representation, then all characters are converted to lower case. - `None` must be treated specially and return an empty string `''`. - Boolean values `True` and `False` should become…

Part of FineEnvs/repo2rlenv-r2e.