Pianohat code

Hello to all members,
I am new to this forum and raspberry pi and accessories, i bought the pi for my grandson as i believe the pi is going to be used in school, so he could get a head start with the programming, i have purchased the pianohat and followed all the instructions but will not let us use the hat, all we get is the messages that there is faults on certain lines of the code, that’s all i can tell everyone hope someone can throw some help to rectify the problem,
look forward to a reply.
From a computer literate granddad and grandson (8 yr old)
Arthur(granddad) and Cody.

Could you share a copy & paste of the code you’re attempting to run, and either a screenshot or photo of the error output?