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

Tell us what’s happening:

I can’t figure out why my code is not passing. Please I need help.
my cod so far.

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_charater = "_" + 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/137.0.0.0 Safari/537.36 Edg/137.0.0.0

Challenge Information:

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

Welcome to the forum :wave:

Your code generates the following feedback:

// running tests
1. You should assign the modified character to a variable named converted_character.
// tests completed

Can you confirm your code is assigning to a variable called converted_character ?

Make sure it’s spelled right and has no typos.

thank you. think the problem is from the browser. I copied the code and past it in chrome and it worked.

Problem was this typo actually. Glad you got it though :+1: