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

Tell us what’s happening:

I thought I listed the variable right with the .join() function but I keep getting this error: You should join the characters in the snake_cased_char_list list into a string using the .join() method and assign the string to a variable named snake_cased_string after your for loop.

Your code so far

snake_cased_string = ''.join(snake_cased_char_list)
/* User Editable Region */

snake_cased_string = ''.join(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 8

2 Likes

The code is correct but I’m guessing it isn’t indented correctly.

It should be 4 spaces from the left, so it is on the same level as snake_cased_char_list = []

this is honestly a reason it sucks that freecodecamp zooms in on pieces of code, it should not do this so we dont get confused

1 Like

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