| 1. |
Following expression does not report an error even if it has a sub expression (2) with divide by zero. Why? 3 or 10/0 |
|
Answer» ong>Answer: Errors and exceptions Errors Errors or MISTAKES in a program are often referred to as bugs. They are almost always the fault of the programmer. The process of finding and eliminating errors is called debugging. Errors can be classified into three major groups: Syntax errors Runtime errors Logical errors Syntax errors PYTHON will find these kinds of errors when it tries to parse your program, and exit with an error MESSAGE without running anything. Syntax errors are mistakes in the use of the Python language, and are analogous to spelling or grammar mistakes in a language like English: for example, the sentence Would you some TEA? does not make SENSE – it is missing a verb. Common Python syntax errors include: leaving out a keyword putting a keyword in the wrong place leaving out a symbol, such as a colon, comma or brackets misspelling a keyword incorrect indentation empty block hpoe u got the answer |
|