"Roberto Bonvallet" <rbonvall at gmail.com> wrote: > You don't need map when using list comprehensions: > > ["" for i in [a, b, c] if i in ("None", None)] > That loses list elements that aren't in the tests: >>> a=7 >>> b="None" >>> c=None >>> ["" for i in [a,b,c] if i in ("None",None)] ['', ''] >>> max