[Tutor] scratching my head

Alan Gauld alan.gauld at btinternet.com
Mon Aug 3 00:46:31 CEST 2015


On 02/08/15 23:01, Alan Gauld wrote:

> found = False
> for s in (".jpg",".png",".avi",".mp4"):
>      found = test or (s in file.lower())

Oops, that should be:

found = found or (s in file.lower())

Sorry, 'test' was my first  choice of name
but I changed it to found later.
But not everywhere :-(


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