Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

Describe your issue in detail here.

I have tried everything it has taught me so far and nothing is working. I Need Help. What am i actually doing wrong?

Your code so far


# User Editable Region

alphabet = 'abcdefghijklmnopqrstuvwxyz'
alphabet.find(text[0])
index = alphabet.find(text[0])
print(index)


# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

I see two issues: you have the line twice, you should have index initialization on the first line, and second, you deleted shift

so should i start again on step 13 instead

You should reset this step. You need to redo step 13 only if you did not understand step 13

Ok, thank you for helping me, that was the problem. But i didn’t see any output on the console. Is that what was suppose to happen?

you need to have the variable text and the call to print to see an output

Also why does index need to go above ‘alphabet’

it doesn’t need to go above alphabet, as you need alphabet to initialize index
so you first initialize text and alphabet and after you can initialize index

Makes sense, thanks for helping.