---
sidebar_position: 11
tags: [AI, Language, Python, Exception]
---

# Exception

```python
try:
  answer = int(first_number) / int(second_number)
except ZeroDivisionError:
  print("You can't divide by 0!")
else:
  print(answer)
```
