Python in Nashville

MRAB python at mrabarnett.plus.com
Sat Jun 20 09:12:18 EDT 2009


Yell123 at aol.com wrote:
>  
> I maintain a math hobby - magic square web page
>  
> http://www.knechtmagicsquare.paulscomputing.com/ 
>  
>  
> A very bright fellow in England sent me a algorithm written in python to 
> solve a problem I was working on.  I can't seem to get it to work ... 
> syntax problems....
>  
>  
[snip]
> 
> *If some one could help me get this working ... I would be grateful.*
> 
> ** 
> 
> *I have loaded Python Ver 2.6 ... but when I paste this code in it keeps 
> giving me errors.*
> 
Are you trying to paste it in IDLE's interactive prompt? That can be
difficult! :-)

If I paste it all at once I get a syntax error, but if I paste one
function at a time then it's OK.



More information about the Python-list mailing list