Tell us what’s happening:
Describe your issue in detail here.
what is the correct code here, please help me.
Your code so far
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index='alphabet.find(text[0])'
print(index)
# User Editable Region
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
alphabet.find(text[0])
index='alphabet.find(text[0])'
print(index)
# 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/120.0.0.0 Safari/537.36
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 13
Learn to Code — For Free
system
January 11, 2024, 8:41pm
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.
Where did you find the instructions to put the value of the ‘index’ variable within double quotes?
1 Like
It is fine for the step 2, but in the challenge 13 you do not assign a string value (aka text) to the variable, but the built-in find()
function.
1 Like
so please tell what is the exact code here
ILM
January 11, 2024, 8:56pm
7
please try yourself, the code is not much different from what you wrote, it just has to not be a string
1 Like
i am new to programming. and it only step 13.please tell what is wrong in this
ILM
January 11, 2024, 8:58pm
9
you wrote a string when it should be code that is executed, you really just have to remove two characters making it not a string
1 Like
Thank you so much for your valuable help. got it.
system
Closed
July 12, 2024, 9:00am
11
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.