MISSION 48

Exception Handling

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

Objectives

  • 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

python-programming-advanced

Course Info:

Python Programming: Advanced

Intermediate

The median completion time for this course is 6.9 hours.

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

START LEARNING FREE

Take a Look Inside