Tell us what’s happening:
Describe your issue in detail here.
Your code so far
# User Editable Region
text = 'Hello World'
shift = 3
alphabet.find(text[]) = 'abcdefghijklmnopqrstuvwxyz'
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 13
Learn to Code — For Free
system
February 13, 2024, 4:18pm
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.
ILM
February 13, 2024, 5:00pm
3
please, reset the lesson so you get back to the starting code, then use find
on a new line
it does not work , I don’t know why
Can you share your updated code?
It asks to pass text[0]
to the find method.
Also, a method will return a value, it’s not a variable that you can assign something to.
Here’s an example of passing a value to a method:
string.endswith(variable)
I called the method .endswith()
on the string
variable and passed variable
to the method.
You won’t be able to assign a value to a method like that. The instructions also don’t mention anything about assigning the alphabet to this?
Call find()
on the variable called alphabet
, pass in text[0]
, nothing else. You already assign the alphabet string in the previous line.
ILM
February 20, 2024, 1:37pm
11
do not change the assignment of a value to alphabet
, operations on the alphabet
variable go after the line in which it is created, please reset the step and try again
1 Like
Thanks that is was so helpful to me
system
Closed
August 21, 2024, 2:26am
13
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.