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 trial

Python Python Basics (2015) Logic in Python Try and Except

Marcus andrews
Marcus andrews
1,223 Points

ds

zxc

trial.py
def add(num1, num2):
    float(return (num1 + num2))
Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Marcus andrews

Would you be so kind as to stop posting "gibberish" in the Community Forums! Students who are here to learn don't appreciate the kind of conduct that clutters the forums.

A clear and descriptive title as well as a clear and descriptive question is proper action and will be greatly appreciated!

Thank you.

Jason ~Treehouse Community Moderator

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,426 Points

It would help if you posted a more detailed discussion of what you are struggling with. That said, it looks like you reversed your float and return:

def add(num1, num2):
    return float(num1 + num2)
Marcus andrews
Marcus andrews
1,223 Points

Jason, I think treehouse is a great resource but the get help thing with the task and having to wait and the searching etc etc really doesn't seem to work very well.