Learn String Manipulation by Building a Cipher - Step 12

Tell us what’s happening:

I made this formula. however, I didn’t get righteous answer.
Hint indicates uses index: text[0], however, strings is immutable, Is there any solution instead of list? I think this phase is not assumed to use list.
I made this formula
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
x =alphabet[1:]
y= ‘d’+ x
print(y)
I can get result of ‘dbcdefghiklmnopqrstuvwxyz’.
I hope I can get any advice. Thank you.

Your code so far


# User Editable Region

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

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

Hi. I suggest you reset the step to get your code back to how it was. You have added a line you didn’t need to. You have not passed to the find method what was asked. It tells what what to pass in place of “z” already there.

Hello there,

If you remove the ''print ‘’ from the last line. The following is a screenshot of the correct format. The last line should be : code removed by moderator

hi @clayebba1

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.

1 Like