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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:00, depression4eternity
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
image
Computers and Technology, 23.06.2019 12:20, jshhs
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, AM28
Does read theory have answers keys ?
Answers: 1
image
Computers and Technology, 24.06.2019 09:40, anyar
Healthy study habits are best described as
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 in other subjects: