title | description | author | tags |
---|---|---|---|
Convert Snake Case to Camel Case |
Converts a snake_case string to camelCase. |
axorax |
string,snake-case,camel-case,convert |
def snake_to_camel(s):
parts = s.split('_')
return parts[0] + ''.join(word.capitalize() for word in parts[1:])
# Usage:
snake_to_camel('hello_world') # Returns: 'helloWorld'