Tell us what’s happening:
Describe your issue in detail here.
I tried doing find (alphabet(Text [0])) and nothing seems to work
Your code so far
text = ‘Hello World’
shift = 3
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
find(alphabet)Text[0]
/* User Editable Region */
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
find(alphabet)Text[0]
/* User Editable Region */
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 12
system
2
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.
Teller
3
Welcome to the forum @gamingpc312
The syntax of your code is incorrect so it is failing the texts.
The instructions mention that the .find method goes at the end of the string.
BTW, check the casing on
Happy coding
Ogma
4
So the instruction for this challenge is:
At the end of your code, call find() on your alphabet string and pass text[0] to the function.
So, looking at the instructions for this challenge, it says,
1)At the end of your code, call find() on your alphabet string
a)So alphabet is the string variable mentioned
b) And then it says to call the find() function on your alphabet string variable
(basically it’s saying to use the find () function with the alphabet variable)
So the format should be:
variableHere.functionHere()
And make sure to put a period between the variable and the function
- The next step is easy, it says,
pass text[0] to the function.
Passing means putting something in between the parenthesis of a function, and,
find ()
is the only function mentioned in this challenge.
Hope this helps.