Wiley interview question

Matrix multiplication in python. try catch and finally