Computer Science
What is the difference between an error and exception?
Python Data Handling
18 Likes
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 execution on which programmer has no control.
Answered By
12 Likes
Related Questions
Differentiate between a syntax error and a semantics error.
Differentiate between a syntax error and a logical error in a python program. When is each type of error likely to be found?
What is the result produced by (i) bool (0) (ii) bool (str(0))? Justify the outcome.
What will be the output, if input for both the statements is 5 + 4/2.
6 == input ("Value 1:")
6 == int(input ("value 2:"))