InterviewSolution
| 1. |
Ello Dudez!❤What are the types of errors in python? |
|
Answer» re two types of error in python 1) Compile TIME error 2) Run time errorCompile Time errorErrors which occurs and traced out at the time of compilation.Types of complie time error :-i) SYNTAX errorWrong use of programming statement. Or rules of programming is violated.example :-a=2PRINT (a) # syntax error correct code:-a=2print (a)ii) SEMANTIC errorMisuse of programming statement. Or statements are not meaningful.example :-10 = a # semantic errorcorrect code :-a=10Run time error Error that occur during the execution of programme.note - some runtime error stop the execution of program.like - Infinity loopThere are some other types of error like :-Logical error Wrong use of logic. Doesn't give desired result.EXCEPTION Undefined situations. All types if error are exception but vice-versa is not true.note - You may can also say there are three types of error. |
|