Learn String Manipulation by Building a Cipher - Step 13

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

You should call the .find() method on the alphabet variable and pass text[0]
i have done evrything it’s dosent work
no matter what I do, I get this error
i don’t now where i make the mistake
I would need an answer or help i am
for half a day I have been struggling to find the answer


# User Editable Region

text = 'Hello World'
shift = 3
alphabet ='abcdefghijklmnopqrstuvw
index=alphabet.find([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/122.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 13

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.
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!

Hi! No need for “index” here. Remove it, add text[0] instead of ([0]) and your code will pass

alphabet.find(text[0])
i have done many changes it’s not working

Your code raised an error before any tests could run. Please fix it and try again.

This code passes for me. Try to clean cache, cookies or use another browser to pass

thank you very much for your help and time

1 Like

I don’t understand with html, I had the same problem, I had to change the brooser and it work and here went the same way

What do you mean, did you pass eventually?

this line is missing two characters at the end, a z and a quote

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