Learn String Manipulation by Building a Cipher - Step 26

Tell us what’s happening:

for char in index:
index = alphabet.find(char)
print(char)

Your code so far

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

# User Editable Region


for char in index:
  index = alphabet.find(char)
     print(char)

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 26

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

It’s really important that you stop just posting code and not asking any questions.

Hi @Grace25

The trace back is giving you some information about a syntax error.

Once you fix that, there is another syntax error you need to address.

For next time, describe the issue in your own words. Learning to communicate problems is a part of becoming a web developer.

Happy coding