Tell us what’s happening:
according to me I am correct and I really don’t know what I have done wrong
Your code so far
# User Editable Region
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for char in text.lower():
index = alphabet.find(char)
new_index = index + shift
encrypted_text = " "
print('char:', char, 'encrypted_text:', encrypted_text)
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 37