computer science help
I need them with ditails of each step in comments # python
#a. Write a function countValue that accepts FOUR parameters: two-dimensional list of #integers, row and col (sizes of the list) and the additional integer. The function returns #the amount of times that integer appears in the list. #b. Write a program that inputs sizes of 2d list, #randomly generates TWO two-dimensional lists #of integers between 0 and 5, and generates additional integer between 1 and 5 to search for. #The program finds the number of times that integer appears in each 2d list. #The program is partially written for you. Complete the program import random def countValue(my_list, row, col, num): #complete this function def make_list(scores, row, col): for i in range(row): for j in range(col): scores[i][j]=random.randint(0,5) return scores def printMatrix(scores, row, col): for i in range(row): print(scores[i]) def main(): #complete the main main()
11 years ago 10
Answer(1)
Purchase the answer to view it
- python_program_pyc.7z
- python_programming.docx
Bids(1)
other Questions(10)
- MKT 571 Finals & Week 6 Quiz 100% Score
- ACC 205
- [anthropology] discussion assignment
- Deleting
- Suppose that management and the union are bargaining over how much
- In your own words, define risk. What are the four functions of risk? How can these four functions be used to make risk decisions? List the factors that affect risk perception in the workplace. How can an industrial hygienist determine how much risk is acc
- Web Assignment
- DB 4 debt management
- Enviromental science lab
- HW