Write a function to change the frequency of a sound 10 times—five times lower than the original frequency, and five times higher.

Note: The function does not specify the amount to change the frequency by, therefore shifting it by any amount between one and zero five times then any amount greater than one five times will work. The easiest way to do this is to make use of the “halve” and “double” functions from this chapter. However, this will be very slow.


```
def raiseThenLower(sound):
#Lower Five Times
sound = halve(sound)
sound = halve(sound)
sound = halve(sound)
sound = halve(sound)
sound = halve(sound)

#Raise Five Times
sound = double(sound)
sound = double(sound)
sound = double(sound)
sound = double(sound)
sound = double(sound)

return sound
```

Computer Science & Information Technology

You might also like to view...

HTML is a programming language

Indicate whether the statement is true or false

Computer Science & Information Technology

With CDP, all data is backed up whenever a change is made.

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

Computer Science & Information Technology

The W3C has ____ rules and ____ rules.

A. hard, fast B. spelling, grammar C. Tier 1, Tier 2 D. strict, loose

Computer Science & Information Technology

The hard drives of computers that are to be disposed of should be destroyed before they are sold or recycled. _________________________

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

Computer Science & Information Technology