Duck song
You are to play the duck song (above) and get the lyrics to display at the correct time. Below is some code to get you started.You will need to have pygame installed and download the duck song to get this code to work. http://www.pygame.org/download.shtml
import time
from pygame import mixer # Load the required library
lyrics = ["A duck went up to a lemonade stand",
"and said to the man",
"who was running the stand",
"he said hey!",
"do you have any grapes?"]
chorus = ["then he waddled away",
"to the very next day"]
times = [1,1,1,1,1]
mixer.init()
mixer.music.load('ducksong.mp3')
mixer.music.play()#########
x=0
x = 0
while x

You need to log in or create an account to submit code!











