Learn String Manipulation by Building a Cipher - Step 37

Hi, got stuck on the step 37, i saw a few articles with the same issue where the main issue was in “space " " is different from empty string "" , the difference is a space”

However it wasn’t help me move forward

The code is here:
text = ‘Hello World’
shift = 3
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
encrypted_text = ‘’

for char in text.lower():
print(char == " ") # Here is s single space inside " "
index = alphabet.find(char)
new_index = index + shift
encrypted_text += alphabet[new_index]
print(‘char:’, char, ‘encrypted text:’, encrypted_text)


/* 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 37

this code passes for me, what do the tests say?

Have no idea but after reloading the page the code works.
Thank you for desire to help me Ilenia

maybe if u put a space on ur quote, then it might work

Hi, welcome to the forum and thanks for helping with an answer.

However, there was no error in the code and this was resolved 14 days ago. Please review the entire thread before commenting.

Thanks!