Question: Make a function count_items (matrix: list, element: int) that gets a two-dimensional integer table as its parameter. The function calculates how many values according to

Make a function count_items (matrix: list, element: int) that gets a two-dimensional integer table as its parameter. The function calculates how many values according to a given item can be found in the table.

count_items(matrix: list, element: int)

m = [[1, 2, 1], [0, 3, 4], [1, 0, 0]]

print(count_items(m, 1))

Print should look like:

3

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!