Вивчіть маніпуляцію рядками, створивши шифр - Крок 40

Розкажіть нам, що сталося:

help me pls i cannot do this task help plisssssssse

Ваш код


# User Editable Region

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

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

# User Editable Region

Інформація про ваш браузер:

Агент користувача: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0

Інформація про завдання:

Вивчіть маніпуляцію рядками, створивши шифр - Крок 40

Hi.
You’re almost done with this. You already have the correct logic (char == ' '). Now print it, the whole thing. Finally, move it to the first line in your loop.