Learn String Manipulation by Building a Cipher - Step 12

Tell us what’s happening:

It doesn’t let me pass the test

Your code so far

text = ‘Hello World’

shift = 3

alphabet = ‘abcdefghijklmnopqrstuvwxyz’

print(alphabet.find(“a”))


/* User Editable Region */

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
print(alphabet.find("a"))

/* 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/120.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 12

Hello Lightles, welcome to the forum!

For this step you don’t have to print the result. Otherwise you are very close. But if you read the question: " call find() on your alphabet string and pass text[0] to the function." You may notice you did everything up until passing text[0] to the function.

alphabet.find(text[0])) you mean like this?

thanks, just answered correctly

1 Like

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