Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics Functions and Looping Returning Values

What does "pass it the argument 3" mean in the challenge

Hi. In question 2 of the challenge for functions, it states to "Under the function definition, call your new function and pass it the argument 3".

What is this asking for "pass it the argument 3"?

thanks

1 Answer

Yes pass the integer 3 as an argument in your function call. For example if i had a function called my_function, the function call with the argument of 3 would look like this my_function(3). Remember arguments are what go int he () of the function call and parameters are what come in () after the function name when when creating the function. Hope this helps.