List of lists

Ben Finney bignose-hates-spam at
Fri Jun 27 03:48:14 CEST 2003

On Fri, 27 Jun 2003 01:44:42 GMT, Mike wrote:
> How do I extract a list of lists from a user defined function

Depends how that function is returning its values.  The most obvious,
and simplest way to do what you describe, is to have the function return
a list of lists, as its return value.

If you mean something else, you'll have to be more descriptive of what
you actually want to do.

> and print the results as strings for each list?

The 'repr()' method of any object will return a printable string of the
object's representation.

 \       "Kill myself? Killing myself is the last thing I'd ever do."  |
  `\                                          -- Homer, _The Simpsons_ |
_o__)                                                                  | 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B

More information about the Python-list mailing list