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 trialmamadou diene
Python Web Development Techdegree Student 1,971 PointsYou're doing great! Just one more task but it's a bigger one. Right now, we turn everything into a float. That's great
i am not progressing with this onne
def add(num1, num2):
try:
return (float(num1) + float(num2))
except ValueError:
return = None
else:
return (float(num1) + float(num2))
2 Answers
Aayush Mitra
24,904 PointsThis should work:
def add(num1, num2):
try:
return float(num1) + float(num2)
except ValueError:
return None
else:
return float(num1) + float(num2)
Hope that works!
Thanks! :)
Aayush Mitra
24,904 PointsRestart the whole task. Then paste the code into task 1.
mamadou diene
Python Web Development Techdegree Student 1,971 Pointsmamadou diene
Python Web Development Techdegree Student 1,971 Pointsi am getting this message now: Oops! It looks like Task 1 is no longer passing.