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

    return [note, intervals.third(note, key), intervals.fifth(note, key)]