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

Tell us what’s happening:

It keeps reminding me of the wrong var,but i’don’t see where i did wrong

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:

用户代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0

Challenge Information:

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

Never mind,guys,it’s soloved.I got blind for a little bit back there :smiling_face_with_tear:

1 Like

Welcome to the forum

You need to add an underscore string using the concatenation operator.

Also, a good idea to keep each bit of code separate with a single space.

Happy coding