Learn String Manipulation by Building a Cipher - Step 15

Tell us what’s happening:

I dont know what it means by removing the last print call and im confused in general someone please help ive been trying for an hour.

Your code so far


/* User Editable Region */

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

/* 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/120.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 15

You should do this:
<redacted>

Hello Crzyjay,

Originally in the code there were 2 comments

print(index)
print(text.lower())

They wanted you to remove the 2nd comment, and keep the first one.
Then the second part of the question:

“instead of text[0] , pass text[0].lower() to find()

Needs to be done, in the find method you already have where you assigned your index variable. Right now in there it says text[0] but the question asks you to change it into text[0].lower().

2 Likes

Hey @pehotapd08, 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.

2 Likes

Ooops , i’m sorry i haven’t knew about this rules

I still don’t quite understand it.

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.

Thank you.

Hey, Can you please elaborate it where you are stuck and confused, It might help me to understand your problem in better way.

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