[Tutor] List comprehensions
Liam Clarke
cyresse at gmail.com
Thu Jan 13 00:37:22 CET 2005
Hi,
Am I able to achieve something like this -
def foobar();
# stuff
return
x=[1,....1000]
for j=foobar(item) for item in x:
As a comprehension, if you get what I mean... Can I build a for loop
with a function in for x in x part?
Ack. Having difficulty summing it up properly.
--
'There is only one basic human right, and that is to do as you damn well please.
And with it comes the only basic human duty, to take the consequences.
More information about the Tutor
mailing list