Learn String Manipulation by Building a Cipher - Step 27

Tell us what’s happening:

I have tried different methods for 40 minutes

I looked at other forums for help but I do not get what I am suppose to be typing on to the line

Your code so far


# User Editable Region

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

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

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 27

The instructions read pretty clear to me. Can you show what you tried, or explain what it is that you don’t understand?

The code you’ve provided is the starting state with no changes. You are to modify this line:

print(index)

Oh sorry I understood the problem and got past step 27 now and I am on 30.

1 Like