Question: Q 1 ) Write down a function that does the following: 1 ) checks if the input is a matrix, 2 ) if it is

Q1) Write down a function that does the following: 1) checks if the input is a matrix, 2) if it is a matrix checks if it is square and 3) if it is square prints the sum of its diagonal elements. Hint: Use If statements and/or conditions on arguments. (4 points)
 Q1) Write down a function that does the following: 1) checks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!