I am stuck on this step

Step 19

The code to execute at each iteration — placed after the : — constitutes the body of the loop. This code must be indented. In Python, it is recommended to use 4 spaces per indentation level. This indented level is a code block.

for i in text:

Give your for loop a body by adding a call to print(i). Remember to indent the loop body.

Deleting the number variable and its value

if ‘number’ in locals():

del number

Declare a new variable called ‘text’ and assign the string “hello world”

text = “hello world”

Create a variable called ‘shift’ and assign the value of 3 to it

shift = 3

Declare another variable called ‘alphabet’ and assign the string “abcdefghijklmnopqrstuvwxyz” to it

alphabet = “abcdefghijklmnopqrstuvwxyz”

Find the position of the first letter in the ‘text’ variable within the ‘alphabet’ string

index = alphabet.find(text[0].lower())

Declare a variable named ‘shifted’ and assign it the alphabet letter at index plus shift

shifted = alphabet[(index + shift) % 26]

Print the value of ‘shifted’


Can you share the link to the step?

He seems to be past this step now, he already posted a topic for step 28:

Closing this for that reason