Learn String Manipulation by Building a Cipher - Step 17

Tell us what’s happening:

I get that I have to turn H into h and find it in alphabet, but I have no idea what goes into brackets after lower. Thanks in advance.

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index = alphabet.find(text[0].lower())
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/135.0.0.0 Safari/537.36 Edg/135.0.0.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 17

you may want to read again the instructions, you are making changes on the wrong line

I am re-reading the instructions over and over, English isn’t my first language and I do not get where is the mistake. When I try adding another print call it’s still not working.

what is your new print call?

print(text[0].lower())

and is it that what you are asked to print? check again the last sentence

I got it, thank you very much for your help and guiding me to think.

The correct code is below.

code removed by moderator

hi @realtalkcoin-del

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.