Re: [Tutor] Making a Primary Number List generator

2013-05-14 Thread Alan Gauld
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

Re: [Tutor] Making a Primary Number List generator

2013-05-14 Thread Alan Gauld
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] ok received open account

2013-05-14 Thread SSGC Balochistan Deprived Employees
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Making a Primary Number List generator

2013-05-14 Thread Marc Tompkins
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] ok this is received open my account

2013-05-14 Thread SSGC Balochistan Deprived Employees
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] env var packages

2013-05-14 Thread Matthew Ngaha
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,