Flowchart (ISO 5807)
Source code
Python
def safe_div(a, b):
try:
return a / b
except ZeroDivisionError:
return 0The editor opens with this code — change it and the chart redraws.
- Language
- Python
- Constructs
- try / except
- Topic
- Exceptions
- Formats
- Word, Visio, draw.io, PDF, SVG