def accuracy_implemenation(y_true, y_pred):
    """Function to calculate accuracy

    Arguments:
        y_true {list} -- list of true values
        y_pred {list} -- list of predicted values
    """

    # initialize a simple counter for correct predictions
    correct_prediction_counter = 0
    # loop over all elements of y_true and y_pred together
    for yt, yp in zip(y_true, y_pred):
        if yt == yp:
            correct_prediction_counter += 1

    # calculate and return accuracy
    accuracy = correct_prediction_counter / (len(y_true))
    return accuracy