Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Conversion into CamelCase - list comprehension solution in Uncategorized category for Conversion into CamelCase by Antoni_Wojcik
def to_camel_case(name: str) -> str:
tab = name.split("_")
tab = [x.capitalize() for x in tab]
return "".join(tab)
print("Example:")
print(to_camel_case("my_function_name"))
assert to_camel_case("my_function_name") == "MyFunctionName"
assert to_camel_case("i_phone") == "IPhone"
print("The mission is done! Click 'Check Solution' to earn rewards!")
Nov. 29, 2022