def training_folds(fold, k=10):
    """
    Return a tuple of all the training folds.
    >>> training_folds(7)
    (0, 1, 2, 3, 4, 5, 6, 8, 9)
    """
    assert fold < k
    return tuple(num for num in range(10) if num != fold)