[Tutor] this group and one liners
Alan Gauld
alan.gauld at yahoo.co.uk
Thu Jul 7 20:33:16 EDT 2022
On 07/07/2022 23:01, avi.e.gross at gmail.com wrote:
> max([] or 0)
>
> breaks down with an error and the [] does not evaluate to false.
max([] or [0])
a sequence is all thats needed.
--
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