Learn String Manipulation by Building a Cipher - Step 12


Please, can anyone help me to pass this step ?











/* 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

Please post your actual code instead of a screenshot. Thanks

Its hard to help if you don’t show what you tried so far and explain how you’re stuck.

alphabet = "abcdefghijklmnopqrstuvwxyz"

find = alphabet.find("a")

print(find)

Can you explain how you’re stuck?

At the end of your code, call find() on your alphabet string and pass text[0] to the function.

It doesn’t look like you’ve quite done this.

I dont know how to i have done this

Can you show what part of your code you believe does this?

Yes you are right. there isnt, but i dont know how can added this part correctly

What are you passing to the find function right now?

alphabet = “abcdefghijklmnopqrstuvwxyz”

index = alphabet.find(“a”)

print(index)

in this, i only calling index function, i have to add some text[0] function

That doesn’t answer my question though. What are you passing to the find function as in an input?