#NL=[[5], 2, [10, 8, [[7]]]]
#target=10
def nestedListContains(NL, target):
    if isinstance(NL, int):
        if NL == target:
            return True
        else:
            return NL

    for i in range(len(NL)):
        if nestedListContains(NL[i], target) == True: return True
    return False
