Answer to Question #205940 in Python for siva

Question #205940

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


1
Expert's answer
2021-06-11T12:33:10-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS