= try print (xe nameerror " not except something wrong finally "the program in general you should use try except finally when you try to open fileread or write to filesconnect to databaseetc example try open "lorum ipsum except something went wrong when finally close (