Working with Text

2. a. "They'll hibernate during the winter."
b. '"Absolutely not," he said."
c. '''"He said, 'Absolutely not,'" recalled Mel.'''
d. 'hydrogen sulfide'
e. 'left\\right'

4.

>>> len('')
0

6. Doe, John

8.

def repeat(s, n):
    """ (str, int) -> str

    Return s repeated n times; if n is negative, return the empty string.

    >>> repeat('yes', 4)
    'yesyesyesyes'
    >>> repeat('no', 0)
    ''
    >>> repeat('no', -2)
    ''
    >>> repeat('yesnomaybe', 3)
    'yesnomaybeyesnomaybeyesnomaybe'
    """ 
    return s * n