Exception Handling

Learn about exceptions while determining the optimal length of a chopstick.


  • Leanr to organize code.
  • Learn to create and use a class.
  • Learn how to handle edge cases using 'except'.

Mission Outline

1. Introduction: The Science of Chopsticks
2. Organizing Our Code
3. Creating the Chopstick Class
4. Storing the Trials in the Chopstick Class
5. Calculating Average Efficiency With a Method
6. Overview of Exceptions
7. Handling Exceptions
8. Handling Bad Data in the Trial Class
9. Handling Bad Data in the Chopstick Class
10. Handling Lengths Outside of the Data Set
11. Converting Lengths to Chopstick Instances
12. Overloading Comparison Operators
13. Takeaways

Course Info:

Python Programming: Advanced


The average completion time for this course is 10-hours.

This course requires a premium subscription. This course includes five paid missions.  It is the 27th course in the Data Scientist in Python path.


Take a Look Inside

Share On Facebook
Share On Twitter
Share On Linkedin
Share On Reddit