Now, use blockingPlay on different sounds to get music to go with the dance.

Note: The easiest way to answer this question is to play a sound on the even turn and a sound on the odd turn.


```
def danceSound (sound1, sound2):
makesquare(sound1, sound2)

def makesquare (sound1, sound2):
w = makeWorld()
evenlist = []
oddlist = []
for turtles in range (10):
t = makeTurtle(w)
t.turn(turtles*36)
if turtles % 2 == 0:
evenlist = evenlist + [t]
else:
oddlist = oddlist + [t]
for times in range(20):
for sides in range(5):
if times % 2==0:
for t in evenlist:
t.forward(100)
t.turn(90)
blockingPlay(sound1)
else:
for t in oddlist:
t.forward(100)
t.turn(72)
blockingPlay (sound2)
```

Computer Science & Information Technology

You might also like to view...

You can make object guides out of bitmap images.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The process of pixel ____ creates new pixels by averaging the colors of nearby pixels.

A. compression B. interpretation C. rasterization D. interpolation

Computer Science & Information Technology

Footnotes are used if there are many references; endnotes, if there are only a few

Indicate whether the statement is true or false

Computer Science & Information Technology

In the formula, =1+(2-3 )+5/6-6^2, what will Excel evaluate first?

A) 1+ B) (2-3 ) C) 5/6 D) 6^2

Computer Science & Information Technology