Question: this is computer science for beginners so please keep it as simple as possible. A magic square is a square array of numbers ( a

this is computer science for beginners so please keep it as simple as possible. this is computer science for beginners so please keep it as simple

A magic square is a square array of numbers ( a matrix) consisting of the distinct positive integers 1, 2, arranged such that the sum of the numbers in any horizontal, vertical, or main diagonal line is always the same number. Write Python function called is_magic_square that will take as parameter a 3 by 3 array of numbers and return true if this array is a magic square and return false otherwise. Here is an example of 3 by 3 magic square: 276 951 438

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!