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 trialTanaka Pendeke
1,095 Pointsim lost
i need help
def add(one, two):
return float(one) + float(two)
2 Answers
Mike Bozee
39,385 PointsTry setting the sum to a variable, then returning the variable.
def add(arg1, arg2):
total = float(arg1) + float(arg2)
return total
MUZ140259 Juliana Kofi
9,532 Pointson your return just put this ........return float(one+two)..and run it
MUZ140259 Juliana Kofi
9,532 PointsMUZ140259 Juliana Kofi
9,532 Pointsdef add (one, two): return float(one+two)