CBSE Class 11 Informatics Practices Question 45 of 102

Python Programming Fundamentals — Question 6

Back to all questions
6
Question

Question 6

What is the difference between an error and exception?

Answer

An Error is a bug in the code that causes irregular output or stops the program from executing whereas an Exception is an irregular unexpected situation occurring during runtime on which the programmer has no control.