Need code for a python program that will read from a file (attached) and tell wh

Do you need assistance from our writers to write this or any assignment?

Need code for a python program that will read from a file (attached) and tell whether the the data in the file are magic squares or not. Assignment instructions below, full assignment details in files attached. Write a program to determine whether a series of square squares are magic or not. The input will come from a file magic.txt. The first line of input for each square specifies the size of the square (number of rows and columns). The square elements follow, one row per line. The end of the data is indicated by -1. You should use separate functions to compute the sum of the rows, the sum of the columns, and the sum of the diagonals.

Do you need assistance from our writers to write this or any assignment?

You may also like