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

Tell us what’s happening:

Hello- not sure where my indentation error is.
I indented my if statement after the for statement
I then added pass at end of the code block, but i keep getting the message: Sorry your code does not pass

Your code so far


# User Editable Region

def convert_to_snake_case(pascal_or_camel_cased_string):
    snake_cased_char_list = []
    for char in pascal_or_camel_cased_string:
        if char .isupper():
            pass

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

Challenge Information:

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

Hi @shreya.kapoor1993

Try removing the white space after char

Happy coding

hello, I did remove the space - but its still not passing for me :frowning:

I reset the exercise and got it to work! thank you for the help!

1 Like