Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Python Copy/paste the code below into a python program. It creates a rectangular 2D list called random_numbers import random random.seed(112023) h= int (random.random ()15)
In Python
Copy/paste the code below into a python program. It creates a rectangular 2D list called random_numbers import random random.seed(112023) h= int (random.random ()15) w=int( random.random ()20) random_numbers =[[ int ( random.random ()1000) for col in range (w) ] for row in range (h)] Your job is to write code to traverse the 2D list to compute each of the following values. Output each of the requested computations and enter them. Notice that the questions might ask you to traverse the entire 2D list, or do a row-wise or column-wise computation. number of rows: number of columns: maximum value: average of all values in the entire 2D list, rounded to nearest integer: a list of the sums of each of the rows: a list of the sums of each of the columnsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started