Tell us what’s happening:
Hi everyone, I’m facing an issue with the step 38 of the Sientific computing with python certification
the code looks correct but tester says there’s something wrong, anyone facing the same problem?
Your code so far
/* User Editable Region */
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
encrypted_text = ''
for char in text.lower():
if (char == " "):
print('space!')
index = alphabet.find(char)
new_index = index + shift
encrypted_text += alphabet[new_index]
print('char:', char, 'encrypted text:', encrypted_text)
/* User Editable Region */
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 38