[Tutor] is there a better way to do this?

Alan Gauld alan.gauld at yahoo.co.uk
Mon May 9 18:49:02 EDT 2016


On 09/05/16 22:03, Ondřej Rusek wrote:

> but for 'tuples in list'... simple:
> 
> data = []
> for record in curs:
>    data += [record]

Couldn't that be abbreviated to:

date = list(curs)


-- 
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