Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

how to solve this step ? i am unable to understand the question here

Your code so far


# User Editable Region

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

# 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/138.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

hi @haraprasad5001

Modify your existing .find() call passing it text[0] as the argument instead of 'z'.

Let me know if you need more hints.

1 Like

You have added way more code than was asked. It only asked you to modify your existing .find() call. I suggest you reset and only modify what is asked for.

1 Like

remove the apostrophe’s and obviously replace the Z for the full line:

code removed by moderator

Took me far too long to figure this one out!

hi @CodeTom

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. How to Help Someone with Their Code Using the Socratic Method

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.