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 trialjordan germann
Courses Plus Student 547 Pointsproduct challenge task
why does it keep telling me the product did not return the right answer.
def product(a,b):
return(a*b) * 2
total = product(2, 8)
print(total)
1 Answer
Steven Parker
231,275 PointsThe "product" would just be the numbers multiplied together. But then you're also multiplying that by 2!
Also, for the challenge, you only need to define the function. You don't need to call it or print anything.