Commit a477e1b
github-pi-bot
Fix issue #2: Add zero division guard to divide() function
- Added guard to check if divisor (b) is zero
- Raises ValueError with descriptive message instead of ZeroDivisionError
- Prevents crashes when calling divide() with zero divisor1 parent 434ed79 commit a477e1b
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
0 commit comments