Learn String Manipulation by Building a Cipher - Step 50

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
        index = alphabet.find(char)
        new_index = (index + offset) % len(alphabet)
        encrypted_text += alphabet[new_index]
print('plain text:', message)
print('encrypted text:', encrypted_text)


/* User Editable Region */

### Challenge Information:
Learn String Manipulation by Building a Cipher - Step 50

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Hello! @finn1

You’re almost there!

In the code you’ve provided, the first function call ie… caesar(text,shift) is right but the next function call ie… caesar() is not necessary in the challenge.