Learn String Manipulation by Building a Cipher - Step 12

Tell us what’s happening:

i am stuck , im new to python i dont really understand what needs to be done

Your code so far


/* User Editable Region */

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
alphabet.find(a)
find(alphabet)






/* 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/119.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 12

At the end of your code, call find() on your alphabet string and pass text[0] to the function.
text = ‘Hello World’
shift = 3
alphabet = ‘abcdefghijklmnopqrstuvwxyz’

after that you need to pass text[0] to the function
like this:
alphabet.find(text[0])

1 Like

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