eli5: In programming, how does using “try and except/catch” blocks stop the program from crashing?

1.09K views

eli5: In programming, how does using “try and except/catch” blocks stop the program from crashing?

In: 10

20 Answers

Anonymous 0 Comments

Crashes happen when something goes wrong but wasn’t handled. Try/catch is basically “if something goes wrong, do this instead”.

You are viewing 1 out of 20 answers, click here to view all answers.