Learn String Manipulation by Building a Cipher - Step 40

Tell us what’s happening:

What should I need to do this , please let me know this

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
encrypted_text = ''

for char in text.lower():
   #we need to put her  like this 
    =>
     print (char ==' ' )

    index = alphabet.find(char)
    new_index = index + shift
    encrypted_text += alphabet[new_index]
    print('char:', char, '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/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 40

You should use the same indentation of the rest of the loop body.
And do not add things like that

They will raise an exception.

We need to click space_bar in the " " .