Python 3.3 vs. MSDOS Basic

Neil Cerutti neilc at
Wed Feb 20 18:06:31 CET 2013

On 2013-02-19, John Immarino <johimm at> wrote:
> Thanks,Chris. I'm a newbie to Python and didn't realize that
> it's not as good at number crunching as some of the others. It
> does seem to do better than Basic with numbers in lists as
> opposed to arrays in Basic.

Python is good enough at number crunching for Project Euler. Its
data types and library make a few of the problems otherwise
uninteresting, in fact.

Sometimes, as in this case, memoization is good enough (a quick
look at my own code for this shows that's what I did, too). But
when it's a particularly good example of a Project Euler problem,
you'll need to do some mathematical analysis to improve your
approach, first.

But yeah, do not get in the habit of comparing your times to,
say, C++ programs. ;)

Neil Cerutti

More information about the Python-list mailing list