Learn String Manipulation by Building a Cipher - Step 27

Tell us what’s happening:

on step 27 (python beta string manipulation)I have found the value of alphabet.find(char) to be 3 and I’m writing the variable index in the beginning of the for loop but it’s still wrong! please tell me what to do!

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/123.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 27

Hello and welcome to the forum!

There is just a misunderstanding: “Inside the for loop” means after the colon.
In this case in the first row before print(char).

Thanks sooooo much, I will try that now!

I think I have found the value to be 3 and I’m assigning it to “index” but it’s still faulty.
What am I doing wrong?

Please share your code

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.