Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

You should assign the value returned by alphabet.find(text[0]) to your index variable.

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Welcome to the forum @Aah

You almost got it.

You do not need this line.

This code is not quite right.

Happy coding