Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
crystal-clear solution in Clear category for Conversion from CamelCase by David_Jones
def from_camel_case(name):
words = []
for ch in name:
if ch.isupper():
words.append(ch.lower())
else:
words[-1] += ch
return '_'.join(words)
May 17, 2019
Comments: