Learn Python List Comprehension by Building a Case Converter Program - Step 5

Tell us what’s happening:

this step is not getting correct. Please help on this step

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Learn Python List Comprehension by Building a Case Converter Program - Step 5

Hi there, :slightly_smiling_face:

You’re really close! The lesson asks you to:

  1. Convert uppercase characters to lowercase using .lower()
  2. Prepend an underscore (_)* to the converted character

Your current code is missing the underscore _. Try this out and see if it works. Let me know if you need any help!