Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

You should call the .find() method on the alphabet variable and pass text[0] to the method. Pay attention to place the method call at the beginning of the line.
i have this error please help me to correct it.

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
print(alphabet.find(text[0]))


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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

You weren’t asked to put your code inside a print call.

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