After pressing a button 5 LEDs light in sequence and a buzzer sounds intermitently

Using raspberry pi3 and python3 a simple setup is used to make 5 LEDs light in sequence together with a buzzer sound when a button is pressed.