Learn String Manipulation by Building a Cipher - Step 26

Tell us what’s happening:

Hello there,
I am currently on step 26. I am confused as to what I have done wrong. If anyone could dumb this down for me to a level I would be able to understand I would be very grateful.

Thankyou for any help which may be offered.

Regards,
Clay

Your code so far

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

# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 26

that is not inside the for loop, so there char does not exists

removed by mod

  • Please do not share solution code in the forum.

hi @yesi, do you have a question?

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.