1 / 3
Jun 2013

The reason for the NZEC is the way you used the write()-function: write() expects a string as argument, not an integer.
So either you make a type conversion or you use "print" instead, which can handle any type.