Learn String Manipulation by Building a Cipher - Step 17

Tell us what’s happening:

Nothing is actually answered on the forum, the vaguely worded question is just reiterated . I can not figure out what to do.

Your code so far


# User Editable Region

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 17

Welcome to the forum @malachymartin455

You should print text.lower() . Pay attention to place the function call at the beginning of the line.

The second print call does not go to index

Also, you were not asked to declare a new index variable. It is causing a TraceBack error.

Happy coding

Keep the same mentality, but it looks like you’re over thinking it. The instructions/resulting errors in the console are trying to point you toward the simple answer.
Index doesn’t need to be re-declared or printed again. Happy coding