try: #some code that may will produce an error except: #some code that will be executed if an error is encountered finally: #this code always will be executed