Learn String Manipulation by Building a Cipher - Step 35

dont know where i went wrong i did exaclty that i dont know if i should i remove the code on slide 8

Your code so far

text = 'Hello World'

shift = 3


alphabet = 'abcdefghijklmnopqrstuvwxyz'

encrypted_text + alphabet[new_index]

# User Editable Region

for char in text.lower():
  
  index = alphabet.find(char)
    
new_index = index + shift
    
encrypted_text = alphabet[new_index]
  
  print('char:', char, 'encrypted text:', encrypted_text)

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

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 35

First, fix the indentation of your code (all the lines inside the loop should have the same indentation of index = alphabet.find(char)). Then look at the hint, because It doesn’t seem to me that you did what the instructions ask.