Question #205940

given string in camel case and convert the camel case to snake case


Expert's answer

message=input()
print(''.join(['_'+i.lower() if i.isupper()else i for i in message]).lstrip('_'))




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS