Hi,
I have a function that returns a list. When I know the number of elements in the list I can do something like:
x,y,z=foo()
however, the number of elements in the list can vary. I would like to do something like
x,y*=foo()
where x would contain the first element in the returned list and y* would contain the remainder of however many elements there are left. Obviously , this syntax is not supported in Python. Is there a philosophical reason for this? Am I thinking about this the wrong way?
thanks in advance.