# Learn String Manipulation by Building a Cipher - Step 13

Okay, I’m really stuck. I am on step 13. It’s asking me to take the value that was output when I run the code alphabet.find(text[0]) (from the previous step. There never was an output value for this, but I’ll assume it wants the letter ‘a’. Can someone confirm that this is what it wants?)

It wants me to assign that value to a variable called “index” and then print that value.

So here is the code that was automatically brought over from the previous question:
text=‘Hello World’
shift=3
alphabet=‘abcdefghijklmnopqrstuvwxyz’
alphabet.find(text[0])

Here is what I try for a solution:

index=“a”
print(index)

Can someone please explain what is wrong? It tells me to create a variable called index and assign it the value generated from alphabet.find(text[0]) which I never got, by I’m guessing is supposed to be the letter “a” since that’s the first position (or 0) of the abcdefghijklmnopqrstuvwxyz

``````
/* User Editable Region */

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

/* User Editable Region */

``````

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Safari/605.1.15`

### Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

@deannaoliveri You’re super close! You’ve got the print(index) part right.

But instead of directly assigning “a” to index, try assigning alphabet.find(text[0]) to index, then printing it.

Hope this helps!

2 Likes

I tried this but it didn’t work too

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thanks!

Hey buddies! with the help of your code and some gpt help i was able to get it. So you you have something like this. NOTE* this is not the answer*

Clue >>>is you gotta string one of these pieces and it should work!

–Solution removed–

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.