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 trialja5on
10,338 PointsFound this hard to follow.. heres mine.
I created my own... I missed out to raise exception but works ok i think.
MyChequePlease.py
https://w.trhou.se/4sr04e65bs
2 Answers
Steven Parker
231,268 PointsAs you said yourself, this code doesn't create or handle an exception for one of the specific error examples covered in the video: when a negative number of people is given.
A good minimum criterion for determining if alternate code "works ok" is to be sure that it can handle all of the test cases shown in the video.
Jacob Prewett
1,310 PointsHaha I immediately used round as well, I really like this code!