Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Can Python function return multiple data? Date: Tue, 2 Jun 2015 21:40:30 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 16 Message-ID: References: <3bbe49da-e989-4a8c-a8a9-75d3a786f508@googlegroups.com> NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1433281230 14226 166.84.1.1 (2 Jun 2015 21:40:30 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 2 Jun 2015 21:40:30 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:91903 In <3bbe49da-e989-4a8c-a8a9-75d3a786f508@googlegroups.com> fl writes: > Hi, > I just see the tutorial says Python can return value in function, it does > not say multiple data results return situation. In C, it is possible. > How about Python on a multiple data return requirement? Python functions can return lists, tuples, dictionaries, or any other container-like object. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"