Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Functions > Returning More Than One Value

Recipe 6.7. Returning More Than One Value

6.7.1. Problem

You want to return more than one value from a function.

6.7.2. Solution

Return an array and use list(  ) to separate elements:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial