Re: Faster way to do this...
From: Timo Virkkala (a_at_a.invalid)
Date: 03/03/05
- Next message: Simon Wittber: "Re: How to write python plug-ins for your own python program?"
- Previous message: Ali: "PYGTK, Google Suggest-like GUI"
- In reply to: Harlin Seritt: "Re: Faster way to do this..."
- Next in thread: Will McGugan: "Re: Faster way to do this..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 03 Mar 2005 08:32:41 GMT
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.
range(2, 100, 4)
How about you fire up the interactive python and try
help(range)
;)
-- Timo Virkkala
- Next message: Simon Wittber: "Re: How to write python plug-ins for your own python program?"
- Previous message: Ali: "PYGTK, Google Suggest-like GUI"
- In reply to: Harlin Seritt: "Re: Faster way to do this..."
- Next in thread: Will McGugan: "Re: Faster way to do this..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|