Question: Expected Behavior Write a function grid _ is _ square ( arglist ) , where arglist is a list of lists, that returns True if
Expected Behavior
Write a function gridissquarearglist where arglist is a list of lists, that returns True if arglist has the shape of a square grid, ie if the length of each element ie "row" of arglist is equal to the number of rows of arglist; and False otherwise.
You can assume that arglist is a list of lists, and do not have to check this.
Examples
gridissquare
return value: True
gridissquare
return value: False
gridissquare
return value: False
gridissquare
return value: True
gridissquare
return value: True
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
