Ejemplo n.º 1
0
def test_readInputTextFile():
    func_list = readInputTextFile(filename)
    answer_list = [
        6, 13, 9, 2, 25, 1, 15, 7, 13, 11, 7, 16, 26, 19, 12, 15, 14
    ]

    assert func_list == answer_list
def myOwnCounter(filename):

    int_list = readInputTextFile(filename)
    int_list = deleteOutlier(int_list)
    int_list = remainOddOrEven(int_list)
    num_of_uniq = countNumOfUnique(int_list)

    return num_of_uniq
def myOwnCounter(filename):
    """Our Final Function
    
    Arguments:
        filename {[string]} -- [input file name]
    
    Returns:
        [int] -- [result]
    """
    all_list = readInputTextFile(filename)
    int_list = deleteOutlier(all_list)
    return countNumOfUnique(int_list)
Ejemplo n.º 4
0
def myOwnCounter(filename):
    """Our Final Function

    Arguments:
        filename {[string]} -- [input file name]

    Returns:
        [int] -- [result]
    """
    tmp = readInputTextFile(filename)
    tmp = deleteOutlier(tmp)
    tmp = remainOddOrEven(tmp)
    num_of_uniq = countNumOfUnique(tmp)

    return num_of_uniq
def myOwnCounter(filename):
    """Our Final Function
    
    Arguments:
        filename {[string]} -- [input file name]
    
    Returns:
        [int] -- [result]

    """
    file_list = readInputTextFile(filename)

    deleted_outlier = deleteOutlier(file_list)

    remain = remainOddOrEven(deleted_outlier)

    num_of_uniq = countNumOfUnique(remain)

    return num_of_uniq