Question: python instructions Assume we have two points on a mop and the coordinates of these two points are (x1,y1) and (x2,y2) Since coordinates in a

instructions Assume we have two points on a mop and the coordinates of these two points are (x1,y1) and (x2,y2) Since coordinates in a map are never gaing to change, we are going to use tuples to save the coordinates' values. Create function conpute_statistics() that takes the two tuples as parameters. Your function should do the following 1. Create a new variable x.product and store the product of the first element of each tuple that is passed as a parameter 3. Createa new tuple calied stats that stores xproduct and \( y_{\text {_ average }} \) 4. Returnstats in your main program, input four floating point numbers 1,y1,x2, and y2 in that order. 1. Create two tuples to store these coordinates coord1 that stores (x1,y1) and coord2 that stores (x2,y2), (You can create a tuple by placing the corresponding values inside the parentheses.) 2. Print the result of the function cail with these tuples provided as an input. Check your code For example if the input is: 0,3 10,4 5.0 4. 6 the output is: (41,5,7,6) ma..py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
