[Tutor] Unpack from list

Alan Gauld alan.gauld at btinternet.com
Mon Jul 13 23:16:28 CEST 2015


On 13/07/15 13:27, Mark Lawrence wrote:

> Hence:-
>
>  >>> a,b,*c=[1,2]
>  >>> a,b,c
> (1, 2, [])

Neat! a new one on me.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list