Learn String Manipulation by Building a Cipher - Step 23

Tell us what’s happening:

i can’t figure out this 23rd step in the python course

Your code so far


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'

    for i in text:    print(i)

        
        

# 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/123.0.0.0 Safari/537.36 Edg/123.0.0.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 23
https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/step-23*strong text*

Hi there! Remember to indent the loop body. Look at the given example (in the task description)

1 Like

thank you,i did everything just like in your post but i keep getting this message: You should add print(i) to your for loop body. Pay attention to the indentation.

what’s your new code?

Show your edited code, please. Oh, wait

You don’t have to copy that line from my post. Take a look at the given example in the task description and use it as a pattern:

for i in text:
    print(i)