Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

I don’t understand what the mistake is.
please help

Your code so far:

Now assign the value returned by alphabet.find(text[0]) to a variable named index . Then, print its value.


# User Editable Region

shift = 5
print(type(shift))
alphabet = 'abcdefghijklmnopqrstuvwxyz'
text = 'hello'
a = alphabet.find(text[0])
print(a)
index = a
print(index)

# User Editable Region

Your browser information:

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

You do not need to add an intermediate variable a.
Just assign the value of alphabet.find(text[0]) to index as mentioned in the instruction.