Latest Awards
Complete 10 python programs which focus on loops.

morgan

Score over 100 points in total

vincebanter10

Complete any 5 python programs

vincebanter10

Complete 3 python list based tasks

vincebanter10

Complete 5 python list based tasks

vincebanter10

Complete 10 python list based tasks

dman12

Score over 1000 points in total

april-logan

Complete any pygame task

april-logan

Complete any 3 pygame tasks

april-logan

You have to complete 5 pygame tasks

april-logan

Score over 500 points in total

sam-edmund

Complete any pygame task

sam-edmund

Complete any 3 pygame tasks

sam-edmund

You have to complete 5 pygame tasks

sam-edmund

Complete any pygame task

12wrigleyf

Complete any 3 pygame tasks

12wrigleyf

You have to complete 5 pygame tasks

12wrigleyf

Score over 500 points in total

jhoughton12

Complete any 10 python prograns

jhoughton12

Complete 10 python programs which focus on loops.

jhoughton12

Python Score
tasks = 0
achivements = 0
freestyle = 0
Total = 0
Top 5 Scores
114gilo 3440
2joss-nolan-2 2470
3alexdawkins 2455
4byrnebrian 2020
512wattsl 1720
Click to view all scores
Who else completed this task?
11 people have completed this task! Below are some of those users!

byrnebrian 14gilo
joss-nolan-2 alexdawkins
joe-henry stanley-mitchell
kierwills 12gleesons
12james 12florance

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!

Leave a Reply

You must be logged in to post a comment.