In this example, thetryblock does not generate any error: try: print("Hello") except: print("Something went wrong") else: print("Nothing went wrong") Try it Yourself » Finally Thefinallyblock, if specified, will be executed regardless if the try block raises an error or not. ...