Learn String Manipulation by Building a Cipher - Step 17

Tell us what’s happening:

I tried entering this code,“text = ‘Hello World’
shift = 3
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
index = alphabet.find(text.lower()[0])
print(index)”, on VScode or a code text editor and there was absoloutely no errors, so why does your platform keep telling me “your code does not work, Try again”?

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 17

Add another print() call to print text.lower() and see the output.

Sorry, Never Mind, I just skipped to step 18, copied and pasted it

Do you understand the mistake that you made?

I would review this before you copy/paste more code on your learning journey: https://www.freecodecamp.org/news/academic-honesty-policy/