Hello! thank you for the reply. I made some changes but I’m still stuck. I have a strong feeling the fault is at _ and char.lower(). But I can’t figure out what gone wrong?
my changes is
““snake_cased_char_list = [char.lower + ‘_’ for char in pascal_or_camel_cased_string]””
Hello! Thank you for pointing that very simple mistake, I fixed it but I still can’t get it right
new changes is
““snake_cased_char_list = [char.lower() + ‘_’ for char in pascal_or_camel_cased_string]””
Changed but still can’t get it right? Should I put them in a () ?
changes
““snake_cased_char_list = [‘_’ + char.lower() for char in pascal_or_camel_cased_string]””
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.