I need help with breaking down this code, I got the code right but I dont understand how and why

“Call your function passing text and custom_key as the arguments. Store the return value of the function call in a variable called encryption .”

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

it’s asking for function passing which i’m a bit lost on and then suddenly the word vigenere is used while text and custome_key is used as arguments. I’m really confused as why suddenly vigenere is used

Please post a link to the step you are on.


I would assume vigenere is a function that was defined at some point and you are asked to call it, pass it the two asked-for arguments, and store its return in the encryption variable.

this is the link: https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/step-63

What about it confuses you?


The only function that can be seen as “your function” is the function that you wrote. In step 53 you changed the name from caesar to vigenere.

The arguments you are passing in are the two variables at the top of the file.

text = 'Hello Zaira'
custom_key = 'python'

Which inside the function are the parameters message and key

def vigenere(message, key):
  # code
1 Like