Learn String Manipulation by Building a Cipher - Step 23

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

/* User Editable Region */

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index = alphabet.find(char)

for char in alphabet:

/* User Editable Region */

why is it telling me that the variable has not been created

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 23

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.

Hi, welcome to the forum!
We see you have posted some code but did you have a question?

(You have not filled out the “Tell us what’s happening:” field above)

Hello Waswabrian,

You declared the variable right, but the question mentions you have to do so “before the print call”. Make sure to move it right before the print call (inside the for loop).

1 Like

It tells me to declare it before the for loop

But thanks…it worked…was sth else

1 Like

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