Aprenda Compresión de Listas en Python Creando un Conversor de Mayúsculas a Minúsculas - Paso 5

Cuéntanos qué está pasando:

I don’t understand the slogan, I can’t solve it Help me

Tu código hasta el momento

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

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Información del Desafío:

Aprenda Compresión de Listas en Python Creando un Conversor de Mayúsculas a Minúsculas - Paso 5

  • Use the .lower() string method to convert uppercase characters to lowercase characters. - done
  • prepend an underscore to the character - X
converted_character = char.lower()

You are using .lower() and assigning the result to converted_character
but you have to add the underscore before the lower char
yours would look like this:
A → a
it has to be like this(almost done):
A → _a

I can’t understand where the underscore should go.

Do you know how to concatenate two strings?

string = "a string."
new_string = "This is " + string

prepend an underscore to the character

this means:
add the underscore before the character
so if is the letter a_a