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

Tell us what’s happening:

Describe your issue in detail 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(char)
            

/* 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/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

You forgot this part: You can then concatenate an underscore to the character.

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.