Write a program that randomly generates a 2D list of integers (range of the integers from -1 to 1). Print the 2D list in the TABLE form. Use function max_col_zero to find and print the list of counters, max counter and index of the column with the max number of zeros
Write a program that randomly generates a 2D list of integers (range of the integers from 0 to 1000). Print the 2D list in the TABLE form. Use function count_prime_row to find and print the list of counters, max counter and index of the row with the max number of prime numbers
Example: in the example below I wrote how the sum was obtained, but in your program you only need to store the final result for the sum.
old_list=[3, 4, 1, -2, 6, 7, 10, -3]
new_list=[-3+4, 3+1, 4+(-2), 1+6, -2+7, 6+10, 7+(-3), 10+3]=[1, 4, 2, 7, 5, 16, 4, 13]
Write a program that randomly generates a 2D list of integers (range of the integers from -5 to 5). The program creates a new 2D list replacing each row with the new row using the function replace_sum. Print old and new 2D lists in TABLE form.
Write main to test your program. make both lists user input.
Example 2D list is:
['g', 'a', 'm', 'e', 'i', 'n']
['g', 'a', 'm', 'e', 'n', 'o']
['b', 'o', 'n', 'y', 'n', 'o']
['a', 'r', 'a', 'i', 'n', 'a']
['b', 'o', 'n', 'y', 'm', 'n']
['n', 'o', 'r', 'a, 'i', 'n']
1D list of words is ['python', 'desk', 'program', 'yana', 'game', 'bony', 'rain','no']
Output: [[-1], [-1], [-1], [-1], [0, 1], [2,4], [3, 5], [1, 2, 5]]