Learn String Manipulation by Building a Cipher - Step 25

Tell us what’s happening:

i dont know what to do and im sorry im asking for so much help im trying to learn

Your code so far

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

# User Editable Region

for i in text: hello
print(i)

# 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/126.0.0.0 Safari/537.36 Edg/126.0.0.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 25

ive tried replacing “i” many times

Hi @abdthebest,

We just want to replace the i with char. Also, delete the “hello” after the colon in the for loop and indent the print statement after the for loop.

I hope this helps. Happy coding!

thanks! foor the help with coding

for char in text: doesnt work

Make sure the i in the print statement is changed as well, and the print statement is indented.

yup it worked thank you dude!

1 Like