Learn String Manipulation by Building a Cipher - Step 13

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

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

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

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.

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