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 trialleo homssi
5,111 Pointsplz kan some one help me, i cant get it right:( the only one that i have trubble with is the one that i have to fill in
i cant pass this quiz
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsThe key to the fill in question is to realize inside the function is a reference to args
. This must be defined somewhere. Since the parameter list is the only available place, args
must go there. However, it can be seen that the function is called with multiple arguments. The way to specify that a parameter can accept multiple arguments is to prefix the parameter with an asterisk (*
). The asterisk will cause the multiple arguments to be packed into a tuple. Hence, the parameter list should be *args
Post back if you need more help. Good luck!
leo homssi
5,111 Pointsleo homssi
5,111 Pointsi forgot to add the quiz:" Functions, Packing, and Unpacking"