On 14/05/13 02:37, Dave Angel wrote:
def counting_primes():
primelist = []
for prime in range(2,1000):
if isprime(prime):
primelist.append(prime)
return primelist
Actually no, since the OP's looking for the first 1000 primes not for
all the primes under 1000.
Ah
On 14/05/13 00:01, Daniel Magruder wrote:
I am still confused as what return does.
Having seen the other replies I'll try a slightly
different explanation.
All programs are formed by a hierarchy of functions.
You start with a top level driver block which then utilizes or calls
helper
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Tue, May 14, 2013 at 1:51 AM, Alan Gauld alan.ga...@btinternet.comwrote:
On 14/05/13 00:01, Daniel Magruder wrote:
I am still confused as what return does.
This isn't a direct response to Alan, but to something the OP expressed
many, many messages ago...
The OP expressed some confusion
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
i have to install django and ive come across some weird instructions.
it says to set Django's django-admin.py file to my environment
variable. I was instructed to get django via easy installer that was
located in my Python/Scripts folder. it installed django to a
different place in site-packages,