Python Program To Implement Matrix Definition