Question: Write the following program in PYTHON; A matris that has x rows and y columns which has following properties; Sum of each column must be

Write the following program in PYTHON;

A matris that has x rows and y columns which has following properties;

Sum of each column must be same.

Every element of matris must be a random integer from 0 to 9

x and y will be choosen by keyboard after.

Example of a random output: ( x= 3 , y=3)

[[2 3 0]

[1 0 5]

[3 3 1]]

Note that 2 + 1 + 3 = 3 + 0 + 3 = 0 + 5 + 1=6

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!