I hope this is what you need:
snake_case = ""
variableName = "parselTongue"
for character in variableName:
if character.isupper():
snake_case += "_"+character.lower()
else:
snake_case += character
print(snake_case)
2
solved What will be the code for this? you have to solve with python