Convert camelCase strings to snake_case with a single function.
Constraints
Example
>>> camel_to_snake("helloWorld")
'hello_world'
>>> camel_to_snake("HelloWorld")
'hello_world'
>>> camel_to_snake("HTTPServer")
'http_server'
>>> camel_to_snake("foo2Bar")
'foo2_bar'
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints