<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_top(self, stat, n):
 """Return the top n values when sorting by 'stat'"""

        return sorted(self.stats, key=lambda x: getattr(x, stat), reverse=True)[:n]