""" Write a program that generates 2d list of integers in range -5 to 5 (ask user to enter row and col). Print 2d list in table form. Find the sum of elements in each column. Store sums in one dimensional list. """ import random def make_list_random2d(row, col, min, max): return [[random.randint(min,max) for i in range(col)] for j in range(row)] def print_matrix(list2d): for list in list2d: print(list) def main(): list2d=make_list_random2d(5,5,-5,5) print_matrix(list2d) sum_column=[] row=len(list2d) col=len(list2d[0]) for j in range(col): count=0 for i in range(row): count+=list2d[i][j] sum_column.append(count) print("sum columns") print(sum_column) main()