Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Conversion from CamelCase by Wartem
def from_camel_case(name: str) -> str:
new_name = ""
for i, n in enumerate(name):
if n.isupper() and i > 0:
new_name += "_" + n
else:
new_name += n
return new_name.lower()
May 29, 2022
Comments: