<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resolve_attribute(name, bases, default=None):
 """Find the first definition of an attribute according to MRO order."""

    for base in bases:
        if hasattr(base, name):
            return getattr(base, name)
    return default