Hello please I’m stack at step 16 and I don’t know what to do now.
I have tried so many ways but is not working out for me so if anyone can explain to me, I will be so glad.
As you can see from the output, "h" is at index 7 in the alphabet string. Now you need to find the letter at index 7 plus the value of shift. For that, you can use the addition operator, +, in the same way you would use it for a mathematical addition.
Declare a variable named shifted and assign it the alphabet letter at index plus shift.
For future reference, if you need help with a particular challenge, it’s best to click the Help icon, which appears after you have submitted incorrect code three times.
This will create a forum post which automatically includes your full code, a direct link to the challenge and an opportunity for you to describe your issue in detail.
If you wish to find the alphabet letter at index, how would you write this?
If you know how to write that then you can use the same syntax to find the alphabet letter at index + shifted.
Please do not post solutions on the forum. We are trying to cut down on the number of spoilers and should try only to offer guidance and hints to allow people to find their own way to the solutions.
Hello, I’m learning as well, but from a learner perspective, the problem involves you creating a new variable, “shifted”, and assigning it the value of the sum of the indexes of the variables “index” and “shift.”
The variable “index” helps you find the index “h” in the variable “alphabet” which is = 7
Note: use a lot of “print()” so you’ll get some output and see what you’re doing