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, s) -> s

    Precondition: n >= 0

    Return s repeated n times.

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