We can get the same effect as sleep by playing a sound with blockingPlay. Change the dance code to use a brief sound to pause the dance, rather than sleep.

What will be an ideal response?


```
def danceSound (sound):
makesquare(sound)

def makesquare (sound):
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)
else:
for t in oddlist:
t.forward(100)
t.turn(72)
blockingPlay (sound)
```

Computer Science & Information Technology

You might also like to view...

Match the following file names to their descriptions:

I. file1.wmv II. file2.mp3 III. file3.bmp IV. file4.wma V. file5.jpg A. compressed by using MPEG audio file B. recorded music audio file C. compressed video file that requires minimal storage D. optimized graphic file format for photographs on the Web E. uncompressed, large graphic file consisting of rows and columns of dots

Computer Science & Information Technology

Are you obliged to keep library assets in their original form?

What will be an ideal response?

Computer Science & Information Technology

A ____ pane is a pane, like a windowpane, that opens on the right or left side of the program window.

A. task B. command C. menu D. status

Computer Science & Information Technology

Modify the ____________________  attribute of the input element to use array notation to store form data.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology