subject

Implement the following function to sort the columns in a two-dimensional list. A new list is returned and the original list is intact.

def sortColumns(m):

Write a test program that prompts the user to enter a 3 by 3 matrix of numbers and displays a new column-sorted matrix. Note that the matrix is entered by rows and the numbers in each row are separated by a space in one line.

Sample Run

Enter a 3-by-3 matrix row by row:

0.15 0.875 0.375

0.55 0.005 0.225

0.30 0.12 0.4

The column-sorted list is

0.15 0.005 0.225

0.3 0.12 0.375

0.55 0.875 0.4

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
What engine component is shown in the above figure?
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
You know the right answer?
Implement the following function to sort the columns in a two-dimensional list. A new list is return...
Questions
question
Mathematics, 17.12.2020 19:50
question
Mathematics, 17.12.2020 19:50
Questions on the website: 13722367