Tell us what’s happening:
The code is not wrong but it says that it is, because the alphabet variable doesn’t have ‘H’, so it won’t find the first text letter on the alphabet variable
Your code so far
# User Editable Region
text = 'Hello World'
shift = 3
alphabet = "abcdefghijklmnopqrstuvwxyz"
print(alphabet.find(text[0]))
# 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/123.0.0.0 Safari/537.36 OPR/109.0.0.0
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 13