NZEC what is it?
MRAB
python at mrabarnett.plus.com
Sun Aug 15 13:22:54 EDT 2010
Mikael B 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?
>
I googled for it and found that it means "non-zero exit code", perhaps
due to an exception. Not a helpful message! :-)
What happens if you deliberately raise an exception, eg:
raise ValueError
More information about the Python-list
mailing list