-
Description given a list of lists. each inner list is same size. they can represent a square or a rectangle.
return information about it.
return its perimeter , area,total number of "*", rectangle/square
s = "*" array = [[s,s,s,s],[s,s,s,s],[s,s,s,s],[s,s,s,s]]
===> permimeter = 16 ,area = 16, "*" = 16 , "square"
Code def determine_params(list): return #its perimeter , area,total number of "*", rectangle/square
Test Cases Failed # s = "*" # array = [[s,s,s,s],[s,s,s,s],[s,s,s,s],[s,s,s,s]] # test.assert_equals(determine_params(array),16,16,16,"square")
Output:
-
- All
- {{group.name}} ({{group.count}})
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}