Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

i cant seem to solve this question because im really new to this

Your code so far


# User Editable Region

alphabet = 'My brain hurts!'
argument = alphabet.find('z')
print(argument)

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

Hi there and welcome to our community!

At the end of your code, call .find() on alphabet and pass 'z' as the argument to the method.

First, hit Reset to restore the starting code for this step.
Then, simply use the find method on alphabet, with ‘z’ in the parentheses.
You’ve done this in your code already but you don’t need to declare a variable (argument). An argument is just the name for a value which is passed to a method or function when it is called (i.e. ‘z’ in this case).


is this how it is supposed to be?

no, the starting code is

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'

you need to reset your code to restore this, and then add the new line as requested

1 Like