Learn String Manipulation by Building a Cipher - Step 50

Im confused and stuck, I think I indented everything properly but it still gives an error that something is wrong. Where is my indenting wrong

Your code so far

# User Editable Region

text = 'Hello Zaira'
shift = 3

def caesar():
    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    encrypted_text = ''
    for char in text.lower():
        if char == ' ':
            encrypted_text += char
            index = alphabet.find(char)
            new_index = (index + shift) % len(alphabet)
            encrypted_text += alphabet[new_index]
print('plain text:', text,)
print('encrypted text:', encrypted_text)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 50

select all the text after your function definition (not including) and hit ‘tab’

tried exactly what you said but did not work

You may have gotten a line or two out of whack while you were troubleshooting. Reset, then define the function, then take everything under it and tab once.

tried that too but only the first line printed not the encrypted line
basically still didnt work

These print calls need to be indented to the same level aliment as of the for loop. However, the problem for the validation test is that you added an extraneous coma at text,

omg bruh thank you it worked