def calc_accuracy(y_test, prediction):
    """Accuracy of the prediction.

    Args:
        y_test (pandas.DataFrame): Actual classes of test set.
        prediction (list): Predicted classes of test set.

    Returns:
        Accuracy of the prediction.
    """
    count = 0
    length = len(y_test)
    for i in range(length):
        if prediction[i] == y_test.iloc[i]:
            count += 1

    return count / length