Python Basics — Day 14 Exception Handling (try / except)
01. What is an Error (Exception)?
An error occurs when something goes wrong during execution → program stops.
Examples: dividing by zero, invalid index access, missing file.
print(10 / 0) # ZeroDivisionError
numbers = [1, 2, 3]
print(numbers[5]...
sabinsim.hashnode.dev2 min read