try: print(1/0) #Do your code below #except ZeroDivisionError: #print('ZeroDivision error in code') except Exception as e: print('Some error occur in code i.e %s'%e) finally : print('The end of code')