import random


def split_training_test(data: list[tuple[str, str]])\
        -> tuple[list[tuple[str, str]], list[tuple[str, str]]]:
    """
    Split the training data into training and test data.
    """
    random.shuffle(data)
    training_data = data[:int(len(data) * 0.8)]
    test_data = data[int(len(data) * 0.8):]
    return training_data, test_data