Programming Languages
Python
Subjective
Sep 30, 2025
Explain exception handling in Python with example.
Detailed Explanation
Use try-except blocks. Example: try: x = 1/0 except ZeroDivisionError: print("Cannot divide by zero") finally: print("Cleanup")
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts