LearnPy Hub
← Regular Expressions problems
Medium

snake_case to camelCase

Read a snake_case name and print it in camelCase, using re.sub with a function that upper-cases the letter after each underscore.

Input

One word.

Output

One word.

Sample 1

Input
total_marks
Output
totalMarks

Sample 2

Input
first_name_of_user
Output
firstNameOfUser
solution.py
Output appears here
snake_case to camelCase · Python practice problem · LearnPy Hub