Learn String Manipulation by Building a Cipher - Step 19

Hello, I don’t understand why this body is incorrect.

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

for i in text:
print(i)

*I’ve added a 4 space indentation but its not showing on the post for some reason.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 19

Hello pejuadelusi,

If you add ``` before and after the code it will format properly.

In your real code, does the alphabet string also miss one of the quote characters?
alphabet = 'abcdefghijklmnopqrstuvwxyz
(Note how ' is missing at the end.)

1 Like

Thank you, I didn’t realise I removed it by mistake!

2 Likes

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