Learn String Manipulation by Building a Cipher - Step 15 Problem

Issue on Step 15 of " [Learn String Manipulation by Building a Cipher"
After creating the index, the step instructs me to print the variable and its giving me an incorrect code message (there was an error before the code could run). I tried looking at other solutions for this problem and nothing worked

#after doing all this: 
#text = 'Hello World'
#shift = 3
#alphabet = 'abcdefghijklmnopqrstuvwxyz'
#alphabet.find(text[0])
#and then 

print(index)

# User Editable Region

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/121.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 15

That line is correct, but it won’t work if you have everything commented out like this.

Try to reset the step and try again.

1 Like

As Mr. (or) Mrs. @pkdvalis pointed out, it works fine. Just remove the comments. In Python, comments are ignored. Every part of your code is fine. Thanking You.

1 Like

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