<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def seventh(note, key):
 """Return the seventh chord on note in key. Example: ['C', 'E', 'G', 'B'] """

    return triad(note, key) + [intervals.seventh(note, key)]