+ 1

I divide a number by zero

i got zerodivisionerror. but why do i need to handle the error. is it because we dont want the error being outputted on the screen. i mean is it because i want something else as the output not the error. no stupid comments plis

12th Apr 2017, 2:02 PM
stephen haokip
stephen haokip - avatar
3 Answers
+ 8
You have to handle it if you don't want your code to be terminated. Errors end the execution of your program.
12th Apr 2017, 2:09 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
gotcha.... thank u kuba...
12th Apr 2017, 2:22 PM
stephen haokip
stephen haokip - avatar
0
As kuba said u have to handle these(know) errors by user inputs or use try cache blocks for unexpected errors.
12th Apr 2017, 2:23 PM
Eranga
Eranga - avatar