def split_transactions(transactions):
    """
    Split transactions into 80% to learn and 20% to test
    :param transactions: The whole transactions list
    :return: The transactions list to be learnt, the transactions list to be tested
    """
    i = int(len(transactions) * 0.8)
    transactions_to_learn = transactions[:i]
    print(str(len(transactions_to_learn)) + " transactions will be used to learn.")
    transactions_to_test = transactions[i:]
    print(str(len(transactions_to_test)) + " transactions will be used to test.")
    return transactions_to_learn, transactions_to_test