John Machin wrote: > Michael Press wrote: >> I have not written python codes nor run any. I saw this >> code posted and decided to try it. It fails. I read the >> tutorial and the entry for the built in function sum, >> but still do not see the problem. The code was cut and >> paste. > > I doubt it -- "none" should be "None"
Not necessarily. He said he cut-and-pasted - I interpreted that to be from *his* editor. But since he was getting a SyntaxError, he would not have hit the NameError yet ... All-in-all, this actually felt like a post from someone who *had* read: http://www.catb.org/~esr/faqs/smart-questions.html Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list