Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

I keep getting this wrong and i’m getting nowhere, any help?

Your code so far


# User Editable Region

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

You need to fix your indentation to be consistent, indentation is crucial syntax in Python

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

  • Does not ask for an index variable, remove that
  • Pass ‘z’ as the argument, not index[0]
  • Does not ask to print an index variable

In this challenge, you are not asked to assign alphabet.find(a letter goes here) to any variable or to print that variable, according to the instructions.

Reset step.