Learn String Manipulation by Building a Cipher - Step 12

Tell us what’s happening:

Describe your issue in detail here.

Your code so far


/* User Editable Region */

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz"
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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

the challenge require that you pass taxt[0] to the find() function not “a”. Correct that and you are good. Happy coding.

I am supposed to Start by finding the position of the first letter in the string using the built-in find() function
At the end of your code, call find() on your alphabet string and pass text[0] to the function.
now i dont understand what exactly does it want me to type in
i am doing
alphabet.find(Text[0])
but it is incorrect

when i do that it does not solve it and what it says is
You should call the find() method.

You should call the find() method on the alphabet variable.

You should call the find() method on the alphabet variable and pass text[0] to the function.

can you reply with your code so we can know what the problem is @ahmedumar1115

text = ‘Hello World’

shift = 3

alphabet = 'abcdefghijklmnopqrstuvwxyz"

alphabet.find(text[0])

it is “text” not “Text”. please check that and revert.

actually the problem was that in the variable alphabet
alphabet= 'abcdefghijklmnopqrstuvwxyz"
it started with single quotation

1 Like

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