Tell us what’s happening:
Describe your issue in detail here.
i dont really understand how to pass the values of ‘text’ and ‘shift’ on properly
Your code so far
can someone please help me find my mistake ```py
/* User Editable Region */
text = ‘Hello Zaira’
shift = 3
def caesar(message, offset):
alphabet = ‘abcdefghijklmnopqrstuvwxyz’
encrypted_text = ‘’
for char in message.lower():
if char == ' ':
encrypted_text += char
else:
index = alphabet.find(char)
new_index = (index + offset) % len(alphabet)
encrypted_text += alphabet[new_index]
print('plain text:', message)
print('encrypted text:', encrypted_text)
caesar(text,shift)
caesar()
/* User Editable Region */
### Challenge Information:
Learn String Manipulation by Building a Cipher - Step 50
https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/step-50