Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Diego Salas Polar
21,431 PointsCan somebody explain why a function does to the argument in Python. I know what it is but don't know when to use it.
Could someone give me a example of what argument does.
1 Answer
Jennifer Nordell
Treehouse TeacherAn argument is simply a piece of information you send to the function. For example if I have a function that adds two numbers input by the user, then the arguments would be the two numbers sent to that function by the user.
Diego Salas Polar
21,431 PointsDiego Salas Polar
21,431 PointsOhhhhh!! I got now. Thanks for the help! :D