help with python homework – Matrixmall

help with python homework