DEV Community

Discussion on: Daily Challenge #95 - CamelCase Method

Collapse
 
rafaacioly profile image
Rafael Acioly
def to_camel_case(value: str) -> str:
    content = value.split(' ')
    return content[0] + ''.join(
        word.title()
        for word in content[1:] 
        if not word.isspace()
    )

This test was easy because i've written a python package that convert snake_case to camelCase and vice-versa :)

github.com/rafa-acioly/animal_case