Re: [Python-ideas] Allow function to return multiple values

2017-06-09 Thread joannah nanjekye
) > > > >>> a, *b = {1, 2, 3, 4, 5} > >>> type(b) > > > >>> a, *b = [1, 2, 3, 4, 5] > >>> type(b) > > > >>> a, *b = dict(zip("spam", range(4))) > >>> type(b) > > > >>> a, *b

Re: [Python-ideas] Allow function to return multiple values

2017-06-08 Thread joannah nanjekye
automatic tuple unpack: > > v1, v2 = return_multiplevalues(1, 2) > > > On Jun 1, 2017 17:18, "joannah nanjekye" <nanjekyejoan...@gmail.com> > wrote: > > Hello Team, > > I am Joannah. I am currently working on a book on python compatibility and

[Python-ideas] Allow function to return multiple values

2017-06-01 Thread joannah nanjekye
a tuple. I will appreciate discussing this. You may also bring to light any current way of returning multiple values from a function that I may not know of in python if there is. Kind regards, Joannah -- Joannah Nanjekye +256776468213 F : Nanjekye Captain Joannah S : joannah.nanjekye T