How to fetch data from a function?

This works, but I need to elaborate on it ...
 name1 = getname(names)

I am sending a list of names to a function that sorts them in various ways and retrieving the name at the top of the list. The function has
 return name1


I am stuck on the syntax for retrieving 3 names ... name1, name2 and name3
Was this page helpful?