python list comprehension return true if one condition is true code example
Example: python return true for list comprehension
# instead of using filter, use map for list comprehension
[x for x in t_f_list if x % 2 == 0] # returns list of true and false elements