> From: ian.g.ke...@gmail.com > Date: Sun, 15 Aug 2010 17:39:57 -0400 > Subject: Re: NZEC what is it? > To: python-list@python.org > > On Sun, Aug 15, 2010 at 12:56 PM, Mikael B <mba...@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
-- http://mail.python.org/mailman/listinfo/python-list