Learn String Manipulation by Building a Cipher - Step 25

I can’t get it.

Your code so far


# User Editable Region

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

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

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 25

change the for loop to iterate over text.lower().

What have you tried so far? Right now the “for loop” is iterating over text.

If there’s something you don’t understand just ask about it. Not sure how to help if I don’t know what you’ve tried or what it is that you don’t understand.

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