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 Collections (2016, retired 2019) Tuples Packing

Kushagra Patel
Kushagra Patel
7,740 Points

Solution Check Advice

hi fellow learners I want to know does my solution approach is correct? Challenge gets passed.

def multiply(*args):
    for i in args:
    return (multi)

print("multiplication of the numbers : {}".format(call))

1 Answer

You have the right idea. A couple of small things: no need to put () around multi. It's a number so you just need to return it. And I would call the variable something more accurate and clear, like product, instead of multi. Remember that coding is a form of communication -- make it easier for others to read and understand your code by using good variable names. This is important when you're working with others.

Kushagra Patel
Kushagra Patel
7,740 Points

thanks a lot for your advice