Re: Function that returns a tuple

2007-06-16 Thread Dan Hipschman
On Sat, Jun 16, 2007 at 06:30:26PM -0700, Marcpp wrote: > Hi, I need to returns a tuple from a function (reads a database) > Any idea?. Like this? def foo(): return 1, 2, 3, 4 -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with following python code

2007-06-11 Thread Dan Hipschman
On Tue, Jun 12, 2007 at 04:25:31AM -, why? wrote: > I've been having problem with the following code. It's supposed to > print the prime numbers between 10 and 100. But i'm not getting any > output, i.e. i guess the outer 'for' loop is being traversed only > once. I would be greatful if you co