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'
encrypted_text = ''
for char in text.lower():
if char == ' ':
print(' ')
index = alphabet.find(char)
new_index = index + shift
encrypted_text += alphabet[new_index]
print('char:', char, 'encrypted text:', encrypted_text)
/* User Editable Region */
```pls I am stuck on this if statement. Don't know where to implement the if statement so it can evaluate to true or false.
I tried using
if char == ' ':
Print("' '")
esle:
break
But none is working
### Your browser information:
User Agent is: <code>Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36</code>
### Challenge Information:
Learn String Manipulation by Building a Cipher - Step 38
https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/step-38