Question: Write a function getDifference that does the following - a: Write a function get Values that takes two values from the user, r and


Write a function getDifference that does the following - a: Write a 

 

Write a function getDifference that does the following - a: Write a function get Values that takes two values from the user, r and c, and construct a two dimensional list using those values. The function should return r and c in the form of (r, c). If r = 3; c = 3 it would look like the structure below: If r = 1; c = 1 it would look like the structure below: If r is not equal to c print error and prompts the user to give values of r and values of c again. Continue this process until the user provides equal value of r and c. b: Write a function fillValues that accepts two values r and c as parameters. It then prompts the user to fill a two dimensional list with values. The dimensions of the two dimensional list are r and c. For example the following is an example of an user filling a 2 dimensional list with values if r = 3 and c = 3. After filling the list with values, return the 2 dimensional list.

Step by Step Solution

3.40 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a def getDifference r c getValues while r c printError r and c must be eq... View full answer

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 Programming Questions!