Skip to content

Conversation

@abhishekrahul93
Copy link

This pull request contains my completed solutions for the "Python Error Handling" lab.

✔ What is included:

  • Implemented try/except, else, and finally blocks across all functions
  • Custom error messages using raise for invalid inputs
  • Inventory initialization with validation (non-numeric or negative values)
  • Product price validation with error handling
  • Customer orders system with:
    • Invalid product name handling
    • Out-of-stock validation
    • Non-numeric and negative order count handling
  • Full end-to-end program tested with both valid and invalid user inputs

✔ Notes:

  • The program gracefully handles bad inputs without crashing.
  • Ensures the user can retry until valid values are provided.
  • All required error handling techniques from the lab instructions are implemented.

Ready for automatic feedback. 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant