Learn String Manipulation by Building a Cipher - Step 12

Tell us what’s happening:

Describe your issue in detail here.
I’m at a loss here I have tried.
alphabet = “abcdefghigklmnopqrstuvwxyz”
alphabet.find(")
print(alphabet)

alphabet = alphabet.find(“”)

google searched how to do it tried copying off that failed. I really am completely lost right now.

Your code so far


/* User Editable Region */

chars = 'abcdefghijklmnopqrstuvwxyz'
alphabet.find('a')
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/120.0.0.0 Safari/537.36 Edg/120.0.0.0

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.

Hi David117 the text[0] should be inside the parentheses of the find function.
Because the function is trying tell you at what point the first character of the ‘Hello World’ string is in the alphabet.
so basically in simple words at what position/number is the letter h in the alphabet but you will see in more detail how it works in the following steps

Hi finn1 so I tried the find function with the text 0. It still is not coming out right and I don’t
like being that person that nags for help but I’m really stuck this is what the code looks like.

alphabet = 'abcdefghijklmnopqrstuvwxyz'

alphabet.find('a')

find(alphabet([0]))

print(alphabet)

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

I can’t see where you added text[0] here, is this the latest version of your code?

Do not feel bad about getting hung up on this problem. Many other people have had the same problem and it’s being re-written to be more clear.

You can try any of the explanations in these threads:
https://forum.freecodecamp.org/search?q=Cipher%20-%20step%2012%20in%3Atitle

Did you delete this line?

text = 'Hello World'

You might need to reset this lesson

it was supposed to be where the 0 was forgot to text that when asking the question also I finally figured it out. I just took what finn1 said simplified. I removed the letter I wanted and the print statement.