subject
Computers and Technology, 08.01.2020 11:31 kers

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 3 5 7 8 1 6 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 00:30
These tools give presenters more freedom to move about the room and interact with their audience. laptop computer laser pointer lcd projector remote control
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
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 cont...
Questions
question
Social Studies, 17.09.2021 15:00
question
Physics, 17.09.2021 15:00
question
Chemistry, 17.09.2021 15:00
Questions on the website: 13722367