text = ‘Hello Zaira’
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
encrypted_text = ’ ’
shift = 3
def caesar():
for char in text.lower():
if char == ' ':
encrypted_text += char
else:
index = alphabet.find(char)
new_index = (index + shift) % len (alphabet)
encrypted_text += alphabet\[new_index\]
print('plain text:',text)
print('encrypted text:', encrypted_text)
donde esta mi error gracias de antemano.