Learn String Manipulation by Building a Cipher - Step 26

Tell us what’s happening:

I don’t get it … What should I do? And why char? Thank you

Your code so far

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

# User Editable Region

for i in char:
    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/106.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 26

Hello there!

Please, do not interfere with the default sections in your code otherwise you’ll run into unwanted problems. Only change what is asked by the tasks.

You changed this line of code. Reset the lesson to gain the original code and only add a variable index as tasked.

1 Like