Click here to download this activity as a PDF worksheet to print out at home!

We can tell computers to play music with the help of code. By telling the computer which note to play when, we can program it to play whole songs! While we use letters to describe the notes, the computer saves these notes as numbers.

Data Duck would like to program his computer to play ‘Twinkle Twinkle’. Some of the coding blocks are already in place, but there are gaps. Using the notes below, can you work out which of the four yellow coding blocks needs to go where in the code, so Data Duck’s computer plays the right song?

Did this answer your question?