Tell us what’s happening:
Please help on this one. The current else statement I have keeps saying error!
Your code so far
def convert_to_snake_case(pascal_or_camel_cased_string):
snake_cased_char_list = []
for char in pascal_or_camel_cased_string:
# User Editable Region
if char.isupper():
converted_character = '_' + char.lower()
snake_cased_char_list.append(converted_character)
else:
snake_cased_char_list.append(char.lower())
# User Editable Region
Challenge Information:
Learn Python List Comprehension By Building a Case Converter Program - Step 7