You'll have to download
this if you haven''t already got Python to run the program that i have just wrote.
Once you have downloaded Python and the attached file, open IDLE, then hit [ctrl]+[O] and browse to the file, then hit open, then hit F5 to run it.(don't wory about how long it will take for it to run, it counts fast.)