Learn String Manipulation by Building a Cipher - Step 12 (Stuck)

So basically, the error code
“You should call the find() method” keeps popping up and I’m confused as to what I’m doing wrong, am I not calling the find method? I’m really new to programming, breezed through the other steps (sort of), but am totally stuck here and I don’t wanna bother my coding friends again. I’m not even really sure what to ask I’ve tried a million different methods if it feels like, but struggling to crack the code.

Your code so far

/* User Editable Region */

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 12

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.

At the end of your code, call find() on your alphabet string and pass text[0] to the function.

  • Called find on alphabet :white_check_mark:
  • pass text[0] :x:

You passed 'a' to the find() function. Pass text[0]

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