Question: python 3.0-3.5 def list_2d_table(values): ------------------------------------------------------- Prints the contents of a 2D list in a formatted table. ------------------------------------------------------- Preconditions: values - a 2D list of

python 3.0-3.5

def list_2d_table(values): """ ------------------------------------------------------- Prints the contents of a 2D list in a formatted table. ------------------------------------------------------- Preconditions: values - a 2D list of numbers (2D list) Postconditions: Prints a formatted table of the contents of values with row and column headings and 3 decimal places ------------------------------------------------------- """ 

Note that this function does not create a new 2D list. It takes an existing list as a parameter and prints its contents.

Sample results (text in italics is user input):

Number of rows: 4 Number of columns: 3 Low value: -100 High value: 100 0 1 2 0 7.715 6.522 23.359 1 79.955 -4.858 -71.112 2 49.249 -17.001 22.338 3 98.593 -28.473 -92.926 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!