Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

I don’t know what’s wrong with my code it already display the correct result

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

Welcome to the forum @pep.mendoza2907

The instructions did not mention adding the .lower() method to the argument.

Also, there is no mention of assigning the expression to the index variable.

Please reset the step to restore the seed code and try again.

Happy coding

1 Like