Re: Faster way to do this...
From: Robert Kern (rkern_at_ucsd.edu)
Date: 03/02/05
- Previous message: mh: "Re: Hardware specs gathering? - platform independant"
- In reply to: Harlin Seritt: "Re: Faster way to do this..."
- Next in thread: Timo Virkkala: "Re: Faster way to do this..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 01 Mar 2005 18:00:56 -0800
Harlin Seritt wrote:
> Roy, I like what you showed: nums = [a for a in range(100)] . My
> mistake for not expressing my question as well as I should have. Not
> only am I looking for a way to fill in 100 spots (more or less) in an
> array errrrr... list, but I'd like to be able to do it in intervals of
> 2, 4, 8 etc. as well as other things.
Like
nums = range(0, 100, 4)
?
-- Robert Kern rkern@ucsd.edu "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter
- Previous message: mh: "Re: Hardware specs gathering? - platform independant"
- In reply to: Harlin Seritt: "Re: Faster way to do this..."
- Next in thread: Timo Virkkala: "Re: Faster way to do this..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|