subject
Computers and Technology, 16.08.2021 23:50 bigb290

The Magic Square is a grid with 3 rows and 3 columns with the following properties: The grid contains every number from 1 to 9. The sum of each row, each column, and each diagonal all add up to the same number. This is an example of a Magic Square: 4 9 2 You can simulate a 3x3 grid using a two-dimensional list. For example, the list corresponding to the grid above would be: 4, 9, 2, 3, 5, 7, 8, 1, 6 Write a function that accepts a two-dimensional list as an argument and returns whether the list represents a Magic Square (either True or False). Create a program that tests the function on the following two-dimensional lists and prints out the results each on a separate line:[[4, 9, 2], [3, 5, 7], [8, 1, 6]] [[2, 7, 6], [9, 5, 1], [4, 3, 8]] [[1, 2, 3], [4, 5, 6], [7, 8, 9]] [[4, 9, 2], [3, 5, 5], [8, 1, 6]]

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Create a cell reference in a formula by typing in the cell name or         a. right-clicking the cell. b. clicking the cell. c. clicking the column where the cell is located. d. clicking the row where the cell is located.
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Where would you click to edit the chart data?
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
You know the right answer?
The Magic Square is a grid with 3 rows and 3 columns with the following properties: The grid contain...
Questions
question
Biology, 03.12.2019 19:31
question
Social Studies, 03.12.2019 19:31
Questions on the website: 13722360