Python: Convert snake case string to camel case string
Python Regular Expression: Exercise-37 with Solution
Write a python program to convert snake case string to camel case string.
def snake_to_camel(word): import re return ''.join(x.capitalize() or '_' for x in word.split('_')) print(snake_to_camel('python_exercises'))
Visualize Python code execution:
The following tool visualize what the computer is doing step-by-step as it executes the said program:
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?