Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

which mistake i am doing

Your code so far


/* User Editable Region */

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

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

Hello! @anshu1221yadav

You’re almost there!

you have to find the text[0] not index[0].

here… look a bit more deeper and you will crack this step!

index = alphabet.find(index[0])
print(index)

Good luck!

2 Likes

btw, Welcome! :tada: to the forum.

Happy Learning!

1 Like

thank i understand my mistake. Now it is working

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.