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

Tell us what’s happening:

Describe your issue in detail here.
I cannot get the step 2 correct.

Your code so far

def convert_to_snake_case(pascal_or_camel_cased_string):
snake_cased_char_list =


# User Editable Region

def convert_to_snake_case(pascal_or_camel_cased_string):    
    snake_cased_char_list = []

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

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

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.

What error message are you getting? Looking carefully at the exact wording of the error message can often help.

Thank you. The error message is as follows:
You should replace pass with an empty list named snake_cased_char_list within convert_to_snake_case .

The code you showed appears to be correct. Try resetting the step and trying again.

I tried a dozen times and it remains incorrect. Is there anything else I could do?

Show me all of your code - and also a screenshot - perhaps I might spot something

I jumped step 2 and reached step 6
While copying the code I went back to step 2 and re-submitted
It went through
I guess the issue was the space.

Thanks a lot for your help.

1 Like

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