Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Neil Cerutti Newsgroups: comp.lang.python Subject: Re: Python 3.3 vs. MSDOS Basic Date: 20 Feb 2013 17:06:31 GMT Organization: Norwich University Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net 7shYGRb83Sov0kVW/B8ZHApUoUch4woHlVYWjDx76KtAKNCfqD2mEN7d4QzP8fOhSA Cancel-Lock: sha1:046ul1HjQMy0j0pP9mU0lAXohTQ= User-Agent: slrn/0.9.9p1/mm/ao (Win32) Xref: csiph.com comp.lang.python:39367 On 2013-02-19, John Immarino 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