FAQ: Introduction to Functions - Parameters


This community-built FAQ covers the “Parameters” exercise from the lesson “Introduction to Functions”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Computer Science
Data Science

FAQs on the exercise Parameters

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!


I don’t get where to add the function. Everywhere i add it, after i remove the number value, I get a syntax error.


Please point us to the exercise page by posting its URL, and include your code and the error message.



Where do I add function so I can delete number = 5?


Now, modify the function definition so that it has a parameter called number . Then delete the number = 5 assignment on the first line of the function.

Pass the number 1 into your function call.

We start out with,

def mult_two_add_three():
  number = 5

The parameter list is empty, and the variable is declared and defined directly in the function body.

We want to be able to supply the function with any value for number so define it in the parameter list, as the instruction suggests…

def mult_two_add_three(number):
  #number = 5

Comment out the declaration line and run the code with the arguments given in this and the next three steps.