To understand and produce magic square manually or/and use my python script to produce the square.

# © 2025 David Ngo
# This script is the intellectual property of David Ngo.
# Free to use for educational or personal purposes.
# Not for commercial redistribution without written permission.

🔵 Try this Interactive Tool: to get a valid magic square as you wish for any number equal or greater than 3.

💻 Launch it on Google Colab (no installation needed):
use your iphone /ipad or computer paste this link below then follow the instructions to produce any magic square with n greater than 3 as your choice:

https://colab.research.google.com/drive/1xPHuT_GOLNCR5Ms7rA54GTLrhcnLrTqS?usp=sharing

Click on ▶️ or “Run all” to run the program. A warning message from Google – “Warning: This notebook was not authored by Google”. This notebook was authored by davidngo10011956@gmail.com…. This is Google system generated. – not applies in our case.
“So when you click the Google Colab link, a security message will appear because the notebook was written by me, not by Google. This is normal and safe. You can click ‘Run anyway’ to interact with the tool. My notebook only does simple calculations and does not access any of your data.”
click on ▶️ or “Run all”to run the program again, after clicking “Run anyway” – then scroll down to the end, you will see a box to enter your input, once you enter all the input then press ENTER key, you will see the result of your work.

📘 Enter the number 3 for 3×3 square , or 4 for 4×4 square, or 5,5,7,…then enter
🎗️ Support the Cancer Council Australia 🎗️
Every view and every share of this video helps raise awareness. If you’d like to go further, please consider donating directly to Cancer Council Australia via my official fundraiser:
💛 DONATE HERE
(copy and paste this into your browser)
https://www.doitforcancer.com.au/fundraisers/davidngo
Your support goes directly toward cancer research, prevention programs, and patient care services.
🙏 Thank you for watching and being part of something meaningful.
📢 Don’t forget to Like, Share & Subscribe to help spread the message!
#CancerCouncil #DoItForCancer #DonateForGood #cancerawareness
Thanks St George TAFE , Kogarah NSW 2217 for teaching