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

Tell us what’s happening:

I passed the test using concatination with ‘_’ and char but why does interpolation with f’strings fail the test?

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():
            pass

# 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/130.0.0.0 Safari/537.36

Challenge Information:

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

I guess the tests are a bit string here.

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

1 Like

Thank you. I took your advice and submitted the issue. :smiley: [Learn Python List Comprehension by Building a Case Converter Program - Step 5] f'string interpolation fails lesson but concatenation passes · Issue #56836 · freeCodeCamp/freeCodeCamp · GitHub