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 trial1 Answer
Greg Kaleka
39,021 PointsHi Nicholas,
The function float
only takes one argument. You also can't call a function inside of a function definition like you're doing. Instead, leave your function definition the same (it should simply take two arguments), and then within the function body, individually convert each argument to a float. Something like this:
first_num = float(always)
second_num = float(win)
and then add together the numbers.
Cheers
-Greg
nicholas Christie
433 Pointsnicholas Christie
433 Pointsthanks i did this just had to change my return arguments.
Greg Kaleka
39,021 PointsGreg Kaleka
39,021 PointsYep that's exactly right! Nice work.