computer science help

profileKatie44
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

    blurred-text
    • attachment
      python_program_pyc.7z
    • attachment
      python_programming.docx