Learn String Manipulation by Building a Cipher - Step 32

Tell us what’s happening:

Idk what I’m doing wrong and all the pages saying how to correct it won’t work this is
Step 32

Your code so far


# User Editable Region

text = 'Hello World'
text = 'Allbatross'

# User Editable Region

shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'

for char in text.lower():
    index = alphabet.find(char)
    print(char, index)
    new_index = index + shift

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 32

Hi,
You have a small typo here. it’s Albatross.
Hope this helps.

1 Like