Question: to be answered in python: Generate a two-dimensional list which consists of random integers from 1 to 9. Each item in the two dimensional list
to be answered in python: Generate a two-dimensional list which consists of random integers from 1 to 9. Each item in the two dimensional list is list that consists of three random integers. The program calculates the magic number by adding all the numbers in the list and then dividing the sum by 3. The two-dimensional list is a magic square if the sum of each row, each column, and each diagonal is equal to the magic number. Include a function to randomly fill the list with random numbers and a function to determine if the list is a magic square.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
