# Learn String Manipulation by Building a Cipher - Step 16

### Tell us what’s happening:

Describe your issue in detail here.
Actually I’m stack at step 16 and I have tried so many codes but it not working.
I will be glad if anyone can explain to me what I should do. Thank you.

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

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index = alphabet.find(text[0].lower())
print(index)
shifted = (index + shift)

/* User Editable Region */

``````

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 16

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.

Hello Freddy,

Right now to `shifted` you assigned `index + shift`, two numbers who equal `10`.
But the question wants you to find the letter in `alphabet` at the location of `index + shift` instead.

For example, to get specifically the 6th letter out of a string you can use `string_var[5]`. Using this example, can you get the specific letter of `index + shift` out of the `alphabet` string?

Also, a hint you can always `print shifted` to see what is currently in the variable to help you debug the issue.

The question is: Declare a variable named `shifted` and assign it the `alphabet` letter at `index` plus `shift`

SOLUTION

# access that position with the use of square bracket “” remember it is in the alphabet variable that you will be looking for this letter.

Please if you find it difficult finding the solution from here kindly reach out, as we will be ready to be of assistance.

1 Like

I figured it out. Thanks very much. I really appreciate the help

1 Like

Thank you, I had the same question and this helped me too.

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