Learn String Manipulation by Building a Cipher - Step 26

Tell us what’s happening:

I’m on step 26 on Computer Science with Python, cannot find an answer. I’ve been trying to solve for a while now.

Your code so far

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

# User Editable Region

index = alphabet.find(char)
for char in text: 
    print(char)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 26

when you added the new line of code, you referenced char but char doesn’t even exist outside the loop.
so since the instructions were to write the new line above the print, where do you think the code should go? (above print but in the loop)

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