Tell us what’s happening:
I’ve done what the directions say and i even looked at other answers on the forum, not quite sure what i’m doing wrong here.
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() + '_'
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Challenge Information:
Learn Python List Comprehension by Building a Case Converter Program - Step 5