NZEC what is it?

Mikael B mback1 at live.se
Sun Aug 15 23:55:53 CEST 2010




> From: ian.g.kelly at gmail.com
> Date: Sun, 15 Aug 2010 17:39:57 -0400
> Subject: Re: NZEC what is it?
> To: python-list at python.org
> 
> On Sun, Aug 15, 2010 at 12:56 PM, Mikael B <mback1 at live.se> wrote:
> > Hi
> >  I use, among other things,  a site,  http://www.codechef.com  to learn
> > python.
> > I don't know what platform they use. I use  linux.
> >
> > When I submit this little piece of  code to them:
> >
> > import sys
> > import math
> >
> > #main
> >
> > s=sys.stdin.read()
> >
> > int_list=s.split()
> >
> > for a in int_list[1:]:
> >         print math.factorial(int(a))
> >
> >
> > they generate a runtime error :NZEC   but I don't  (python 2.6)
> >
> > What is NZEC  and what could cause it in these few lines of code?
> 
> Non-zero exit code.  Unless you're calling sys.exit, this normally
> means your program raised an uncaught exception.
> 
> In the case of your program, I believe that codechef currently uses
> Python 2.5.  The math.factorial function was added in Python 2.6, so
> it would not be available.
> 
> Cheers,
> Ian

Ahaa!    Thank you.

regards Mikael




 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100815/c4800fc4/attachment.html>


More information about the Python-list mailing list