Learn String Manipulation by Building a Cipher - Step 27

Tell us what’s happening:

i don’t know how i can solve it
i have a new_letter and it is the H how i can change it?

Your code so far


/* User Editable Region */

text = "Hello World"
new_letter = text[0]



/* User Editable Region */

shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 OPR/105.0.0.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 27

You are assigning text[0] to the variable new_letter but you want to do the opposite.

You want to assign a new string character to text[0]