Write a function to convert a snake case string to camel cas...
Prompt
Write a function to convert a snake case string to camel case string. Your function should satisfy these tests: ```python assert snake_to_camel('python_program')=='PythonProgram' assert snake_to_camel('python_language')==('PythonLanguage') assert snake_to_camel('programming_language')==('ProgrammingLanguage') ```
Answer guidance
Reference solution: def snake_to_camel(word): import re return ''.join(x.capitalize() or '_' for x in word.split('_'))
Drag to resize
Drag to resize
Drag to resize