Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribedIn 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 columns

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

1. Explain how business strategy affects HR strategy.

Answered: 1 week ago