<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def use(data, attrs):
 """Return the values of the attributes for the given data :param data: the data :param attrs: strings :returns: a list With a dict:: ['Metallica', None, 'James Hetfield'] With a non dict data structure:: ['Alice', 'F'] """

    if isinstance(data, dict):
        if not isiterable(attrs):
            attrs = [attrs]
        coll = map(data.get, attrs)
    else:
        coll = map(lambda x: getattr(data, x), attrs)
    return coll