Learn String Manipulation by Building a Cipher - Step 72

Tell us what’s happening:

I have uncommented the last 2 lines of code but not sure how can i pass the call function 1 passing step can anyone help me in this please.

Your code so far

text = 'Hello Zaira'
custom_key = 'python'

def vigenere(message, key, direction):
    key_index = 0
    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    encrypted_text = ''

    for char in message.lower():
    
        # Append space to the message
        if char == ' ':
            encrypted_text += char
        else:        
            # Find the right key character to encode
            key_char = key[key_index % len(key)]
            key_index += 1

            # Define the offset and the encrypted letter
            offset = alphabet.index(key_char)
            index = alphabet.find(char)
            new_index = (index + offset*direction) % len(alphabet)
            encrypted_text += alphabet[new_index]
    
    return encrypted_text
    

# User Editable Region

encryption = vigenere(text, custom_key)
print(encryption)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 72

Can you see where your function call is? There are 2 arguments at present . You need to add a third one as instructed.

how can i add the third one and where to add it can you please tell me?

do you see where the function is called? it is being called with two arguments when the function is declared with 3 parameters, it needs an argument more

you can see also the traceback that points there

yeah got it thanks for the help