try: #create an exception except: print('Exception occured') try: #create an exception except Exception as e: print('Exception '+str(e)+' occured')