Buzzer does not works

I have the Grove Base Kit Sketchbook on my raspberry pi.
I opened the tutorial_01-Buzzer, but when I type “sudo python Buzzer.py” the terminal says “application exiting”.
The Buzzer does not make a sound.
The buzzer is not broken, because when I place it in I2c it will buzz.
How can I make it work?