human
Write me a Python program to change from camel case to snake case.
assistant
Here is a Python program to change from camel case to snake case

import re

def camel_to_snake(name):
  """Converts camel case to snake case."""
  s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
  return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()

# Enter the name
name = "carnation"

# Calling the function
print((camel_to_snake(name)))

#Example Output
# carnation

#Remember to inspect code for bugs.