[Solved] Find all possible magic squares (3×3) python
I’ll leave finding out how to generate a magic square as an exercise. If you’re still having trouble with it, you can find other questions on StackOverflow about how to generate a magic square of a given size in Python. Once you have your 3×3 magic square magic(3) (as a numpy ndarray), you can obtain … Read more