Skip to content

This is a python script that reads a text file and verifies if the content is a magic square or not

Notifications You must be signed in to change notification settings

Jolliano/PythonMagicSquare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonMagicSquare

This is a python script that reads a text file and verifies if the content is a magic square or not.

A magic square is a square containing a number of integers arranged so that the sum of the numbers is the same in each row, column, and main diagonal and often in some or all of the other diagonals.

This script runs counts and calculations to verify txt files containing magic squares. It also writes a new file for each validated magic square with the prefix "Validated " before the original file name.

NOTE: The txt file must be in the same directory as the script.

About

This is a python script that reads a text file and verifies if the content is a magic square or not

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages