def cut_out(s, phrase):
    """
    Returns the input string <s> but with all occurrences of <phrase> deleted

    <phrase> should be one or more words, separated by
    whitespace. Effort is made to preserve one space between words,
    which makes it better than s.replace(phrase, '')

    >>> s = 'the quick brown fox, which is the brownest ever, jumped over the lazy dog'
    >>> cut_out(s, 'the')
    'quick brown fox, which is brownest ever, jumped over lazy dog'
    >>> s.replace('the', '')
    ' quick brown fox, which is  brownest ever, jumped over  lazy dog'

    Note the extra spaces in the s.replace version

    """
    return ' '.join(map(str.strip, s.split(phrase))).strip()