Create an OR function, without use of the 'or' keyword, that takes an list of boolean values and runs OR against all of them.

Assume there will be between 1 and 6 variables, and return None for an empty list.

Difficulty: introductory

Starter code:

def alt_or(lst):
	

Solutions:
def alt_or(lst):
    return any(lst) if lst else None

def alt_or(lst): return bool(sum(lst)) if lst else None

def alt_or(a):
    return any(a) if a else None 

def alt_or(lst):
    return eval(str(lst).replace(',', '|'))[0] if lst else None

def alt_or(a):
    if a: return any(a)

def alt_or(lst):
    if (lst == []):
        return None
    for x in lst:
        if (x == True):
            return True
    return False


def alt_or(lst):
    if len(lst) == 0: return None
    return True if True in lst else False

alt_or = lambda lst: True in lst if len(lst) > 0 else None

def alt_or(lst):
    if len(lst) == 0:
        return None
    
    result = 0
    for boolean in lst:
        result += int(boolean)
    
    return bool(result)