Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

Describe your issue in detail here.

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

please, reset the lesson so you get back to the starting code, then use find on a new line

it does not work , I don’t know why

Can you share your updated code?

It asks to pass text[0] to the find method.

Also, a method will return a value, it’s not a variable that you can assign something to.

Here’s an example of passing a value to a method:

string.endswith(variable)

I called the method .endswith() on the string variable and passed variable to the method.


it stil does not work

You won’t be able to assign a value to a method like that. The instructions also don’t mention anything about assigning the alphabet to this?

Call find() on the variable called alphabet, pass in text[0], nothing else. You already assign the alphabet string in the previous line.

do not change the assignment of a value to alphabet, operations on the alphabet variable go after the line in which it is created, please reset the step and try again

1 Like

Thanks that is was so helpful to me

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