In the previous lessons, you have learned to use the Finch lights and motors, as well as the micro:bit display. There is one more output, the buzzer inside the Finch. In this lesson, you will learn to use lists to play simple songs using the buzzer.
Register to receive free access to all teacher materials.





![notes = [60,65,69,72,60] # List of notes](/source/6c0b8a8c3de0ef01382e0000fbc0b9c2/image8-2.png)
![notes = [60,65,69,72,60] # List of notes
for i in notes: # For each note in the list
bird.playNote(i, 0.5) # Play the note
sleep(0.5)](/source/0f0fcdab65d92e74311f5c2245dc1d9d/image7-3.png)
![print("First note: ", notes[0])
print("Last note: ", notes[len(notes) - 1])](/source/d6b949416c64c2bd02ec1f01b7a9649b/image1-9.png)
![for i in range(len(notes)): # For each note in the list
bird.playNote(notes[i], 0.5) # Play the note
sleep(0.5)](/source/4d0f182ac036ceb5e07a940e664c3bec/image5-8.png)
![distanceMeasured = [] # Create empty list
for i in range(15):
distanceMeasured.append(bird.getDistance()) # Add element to end of list
sleep(1)
print(distanceMeasured)](/source/a91be2455e068c89d00ee1ba67696fc0/image3-9.png)
![from time import time [nl]startTime = time()](/source/9decc5315b70ff5263b752dfdd5ae63f/image4-8-300x71.png)