Console showing "memory error"

It’s not as simple as that
IIRC, source code size needs to be below 32k, but then the Python VM needs to be able to turn that into byte code, so program complexity also is a factor.

This is one of the big downsides to using Python (which blocks converts to) rather than C on the IQ generation 2 brain.

send feedback with the program open and I can take a look if you want me to.

discussion about this a couple of years ago.