Quick actions

cmd+k|ctrl+k

Navigation

Languages

p112

Snippet info

Language

Python

Visibility

public

Author

bigfoot633

Created

2025-12-12T13:07:09.307086Z

Updated

2025-12-12T13:07:09.307086Z

try:
    x = 1
    y = '0'
    result = x/y
    print (result)
# ZeroDivisionError if y=0
# TypeError if y='0'
except:
    print("data error")
# try and except tell you have bug but not force program bug


INFO