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 Types and Branching Numeric

Christopher Hall
seal-mask
.a{fill-rule:evenodd;}techdegree
Christopher Hall
Python Web Development Techdegree Student 196 Points

No rounding error in my workspace

When I type 1+1+1-3 or 4+3-7, I just get a flat zero. It's nice that there are no rounding errors, but there have been other similarly streamlined simplifications in other modules that have prevented me from taking advantage of learning through fixes (as would have been provided in the case of employing the 'round' fix).

1 Answer

Hi Chris. I know I'm familiar with what you've experienced before. It's always possible to look them up:

python docs: rounding error

python rounding error in Stack Overflow

For now, I recommend you simply don't worry about it until it comes up, because when you have a specific problem to solve, it's easiest to address it that way. In this scenario, it is best to be reactive rather than proactive :)

Of course if you're trying to solve something in particular, please let us know.

Cheers,

-Mark