Python Try Except - GeeksforGeeks
www.geeksforgeeks.org
Syntax errors and Exceptions The try block is used to check some code for errors i.e the code inside the try block will execute when there is no error in the program code inside the except block will execute whenever the program encounters some error in the preceding try block.