we can change the flow of execution by using jumpcontinue statements syntax errorerrors are the mistakes or faults performed by the user which results in abnormal working of the program howeverwe cannot detect programming errors before the compilation of programs the process of removing errors from program is called debugging syntax error occurs when we do not use properly defined syntax in any programming language for exampleincorrect argumentsindentationuse of undefined variables etc exampleage= if age> print ("you can vote"syntax error because of not using indentation else print ("you cannot vote"#syntax error because of not using indentation runtime errorsthe second type of error is runtime errorso called because the error does not appear until after the program has started running these errors are also called exceptions because they usually indicate that something exceptional (and badhas happened some examples of python runtime errorsdivision by zero performing an operation on incompatible types using an identifier which has not been defined accessing list elementdictionary value or object attribute which doesn' exist trying to access file which doesn' exist semantic errorsthe third type of error is the semantic error if there is semantic error in your programit will run successfully in the sense that the computer will not generate any error messagesbut it will not do the right thing it will do something else the problem is that the program you wrote is not the program you wanted to write the meaning of the program (its semanticsis wrong identifying semantic errors can be tricky because it requires you to work backward by looking at the output of the program and trying to figure out what it is doing