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 trialGabriel Ogbonnaya
1,701 Pointsfloat
What is wrong
def add(float(gain),float(mike)):
return(gain + mike)
1 Answer
Steven Parker
231,275 PointsYou can't call functions inside your parameter declarations.
But this seems to be a duplicate question, and there's already an example solution posted to the original question.
Angatvir Sanghera
Courses Plus Student 4,406 PointsAngatvir Sanghera
Courses Plus Student 4,406 PointsI don't really understand what you are trying to do. If you're passing two floats into a function then you do not need to label them floats. Just make sure they are floats when you pass them in.