Learn String Manipulation by Building a Cipher - Step 24

Tell us what’s happening:

Describe your issue in detail here.

Question: Step 24

Now, remove the indentation and see what happens to the output.

I have been trying for 1-2 hours to find a solution to this problem but I don’t seem to find one, I realized I have a different question than other people used to have, is this a bug? And if not please just tell me the answer and if possible explain it because I don’t think I can solve it if it is even solvable.

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for char in text:
    index = alphabet.find(char)
    print(char, 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 24

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.

The code in the for loop is still indented.

Reset the Step and try again?

Hi, thanks for the advice. I found the solution after I reset the lesson, I thought it would make me start from lesson 1 but I was wrong, either way I found the solution, thank you!

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