22. What is a output of this Python program? (2 points) X=[[12,7,3], [4,5,6], [7,8,9]] Y =...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
22. What is a output of this Python program? (2 points) X=[[12,7,3], [4,5,6], [7,8,9]] Y = [[5,8,1], [6,7,3], [4,5,9]] result = [[0,0,0], [0,0,0], [0,0,0]] for i in range(len(X)): for j in range(len(X[0])): result[i][j]X[i][j] - Y[i][j] for r in result: print(r) 22. What is a output of this Python program? (2 points) X=[[12,7,3], [4,5,6], [7,8,9]] Y = [[5,8,1], [6,7,3], [4,5,9]] result = [[0,0,0], [0,0,0], [0,0,0]] for i in range(len(X)): for j in range(len(X[0])): result[i][j]X[i][j] - Y[i][j] for r in result: print(r)
Expert Answer:
Answer rating: 100% (QA)
The Python program shown in the image is performing elementwise subtraction of two matrices X and Y ... View the full answer
Related Book For
Applied Regression Analysis and Other Multivariable Methods
ISBN: 978-1285051086
5th edition
Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg
Posted Date:
Students also viewed these programming questions
-
1. For each of the variables listed in the table below, indicate: the type of variable - quantitative discrete, quantitative continuous or qualitative, and the level of measurement for the variable -...
-
Write a Python program to demonstrate multithreading. Your code shall first create a file for writing called "synch.txt" (autograder will be looking for this file). Then it will create two separate...
-
9.1 Exercise (JDK Source Code): Extract the source code of the class Math from the JDK source code ("$JAVA_HOME" "src.zip" "Math.java" under folder "java.lang"). Study how constants such as E and...
-
You are given the following information concerning Parrothead Enterprises: Calculate the company?s WACC. Debt: 13,000 6.4 percent coupon bonds outstanding, with 15 years to maturity and a quoted...
-
Mark Hancock, Inc., manufactures a specialized surgical instrument called the HAN-20. The firm has grown rapidly in recent years because of the product's low price and high quality. However, sales...
-
Use a numerical integration routine to evaluate each definite integral in Problem (to three decimal places). ~3.5 x In x dx 1.7
-
A statistics instructor gave a four-question truefalse quiz to his class of 150 students. The results were as follows. The instructor thinks that the students may have answered the questions by...
-
The manufacturer in Problem 2-24 now has a standing order of 24 model A motors for each production period. Resolve Problem 2-24 to include this additional constraint. In problem 2-24 A small motor...
-
Describe the evaluation process you will be implementing to determine the effectiveness of your change. Be specific in the methodology (PDCA, etc.) you will use in your plan and why you feel that is...
-
I need help on this read from bottom to top. Image transcription text 7"} The second ?nancial statement to prepare is the statement of retained earnings. To determine the ending balance of...
-
Company A has been selling 200 units per month of a product at a price of $12 per unit. The two competitors of Company A have also been selling that product at $12 per unit. The manager of Company A...
-
Review the article "What Is a Healthcare Marketing Plan?" in this module's resources. Using the Module Two Assignment Worksheet as a guide, address the following critical elements: Identify the...
-
You need to schedule 10 units of product Alpha for delivery in 6 weeks Three units of D and 2 units of F are required for each Alpha. The lead time for Alpha is 1 week Lead time for D is 1 week, and...
-
Briefly discuss the role of marketing communications in value creation. Why are marketing communications so important?
-
Did your opinion about GMOs change after carefully evaluating their benefits and risks? Why or why not? Which argument is the most compelling, and why? EXPLAIN GMOs have offered opportunities in a...
-
1. You are short on a call with an exercise price of $50. What is the value of the call at Maturity? If the call premium at the time you shorted it was $3. What is your profit or loss on the...
-
116. Most important criteria to establish under Hill's criteria of causation : a. Specificity of association b. Sensitivity of association c. Temporal association d. Null association
-
How has the globalization of firms affected the diversity of their employees? Why has increased diversity put an additional burden on accounting systems?
-
Refer to Problem 14. Using the computer output for that problem, and the accompanying output here, answer the following questions. a. Determine the variance inflation factors for the estimated model...
-
Answer the same questions as in parts (a) and (b) of Problem 1 for each of the regressions of Y on X in Problems 5 through 8 and Problem 10 of Chapter 5. The following results will be helpful:...
-
An educator has obtained class average scores on a standardized test for classes from each grade from first through seventh at each of four schools in a city. These are shown in the following table....
-
The Excel formula to compute net income's percentage of sales in Exhibit 7-5, is a. \(=B 4 * B 2\) b. \(=B 4 / B 2\) c. \(=\mathrm{B} 2-\mathrm{B} 3\) d. \(=\mathrm{B} 4+\mathrm{B} 3\) EXHIBIT 7-5 A...
-
Match each component of a computerized accounting system with its meaning. Meaning Component Electronic linkages that allow different computers A. Server to share the same information Electronic...
-
Complete the crossword puzzle that follows. 2 3 4 5 6 Down: 1. Managers need over operations in order to authorize transactions and safeguard assets 3. Programs that drive a computer 4. Electronic...
Study smarter with the SolutionInn App