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


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to