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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![ja5on](https://uploads.teamtreehouse.com/production/profile-photos/11535073/micro_Sprockets.jpg)
ja5on
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](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 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](https://secure.gravatar.com/avatar/011c86a400db39cdf432d3b7c2e13897?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Jacob Prewett
1,310 PointsHaha I immediately used round as well, I really like this code!