Learn String Manipulation by Building a Cipher - Step 40

Tell us what’s happening:

Can someone tell me the mod for this code please I need it in order to move forward

Your code so far


# User Editable Region

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

for char in text.lower():
    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/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 40

here you are not comparing char to a space, for that to be a space you are missing the space. Also you should not have the parentheses around the string