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

Tell us what’s happening:

hi, am i doing the list right? please guide me on what to correct

Your code so far


/* 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

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

Yes ur step 2 is correct.

The function convert_to_snake_case takes a pascal_or_camel_cased_string string as input. An empty list snake_cased_char_list is created inside the function.

Further proceeding u will learn more. Currently in step 2 this is what’s happening.

1 Like

but how come my code does not pass

It will pass. Try again

unfortunately, it still does not pass, am i inputing the code right?

click reset and try again. I checked twice and it works.

now it worked, all i had to do was reset, thank you so much for ur time, sorry if i bugged u too much

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