[Tutor] test

Asif Iqbal iqbala-python at qwestip.net
Fri Jun 17 17:02:46 CEST 2005


On Fri, Jun 17, 2005 at 07:41:17AM, Chad Crabtree wrote:
> How about this.
>  >>> from random import choice
>  >>> alist=[choice(range(100)) for x in range(1000)] #just making a

How do I do this in python?
 alist < /tmp/logfile

The logfile has the list of entries.

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi


More information about the Tutor mailing list