Learn String Manipulation by Building a Cipher - Step 37

Tell us what’s happening:

according to me I am correct and I really don’t know what I have done wrong

Your code so far


# User Editable Region

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

for char in text.lower():
    index = alphabet.find(char)    
    new_index = index + shift
    encrypted_text = " "
    print('char:', char, 'encrypted_text:', encrypted_text)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 37

why is this inside the loop?
it was defined as third line of the code, it should still be there

only new_char needs to be replaced with encrypted_text, the rest of the line has to stay the same