Computers and Technology
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]]

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 07:30, LuckyCharms988
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
image
Computers and Technology, 24.06.2019 11:20, tiffanibell71
Colby works as a shipping clerk for a major package delivery service. some of his daily tasks include tracking shipments and entering orders. which aspect of the information technology cluster would he most likely be trained in? a. networkingb. databasesc. hardwared. software
Answers: 2
image
Computers and Technology, 24.06.2019 19:20, boyancecristina
Which command suppresses the visibility of a particular row or column in a worksheet?
Answers: 1
image
Computers and Technology, 25.06.2019 05:00, natewestly6464
The ratio of men to women in a certain factory is 3 to 4 .there are 210 men. how many workers are there?
Answers: 2
Do you know the correct answer?
The Magic Square is a grid with 3 rows and 3 columns with the following properties: The grid contain...

Questions in other subjects:

Konu
Mathematics, 29.10.2020 20:20
Konu
German, 29.10.2020 20:20
Konu
Mathematics, 29.10.2020 20:20