Describe your issue in detail here.
it keeps telling me to delete print(char == " " when i already did and replaced it with an if statement
Your code so far
/* User Editable Region */
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
encrypted_text = ''
for char in text.lower():
if (char == "space!")
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
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 38
It looks like your if statement is now correct. Can you show us the code using the code format like you did in the first post? We can’t see if you indented the code right otherwise.
He changed your second post so we can see the code formatting.
Did you get the step to work? If not I would try and reset the step and do it again to make sure you didn’t accidently change anything else that you didn’t notice. (I’ve been there as well haha).