You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the same format as other functions in noises.py, write a function for random_noise(). This function will play one of the five cat noise mp3 files in the sound folder randomly.
Write the random function in noises.py
Incorporate the function in Cat class using the existing function Cat.make_noise. Use parameter noise = "random". Look at how meowing is already incorporated.
Edit the docstrings for this function to reflect the new sound
Create a test for the new function. Note that since this function already exists, it already has tests. Reuse as much as possible.
Following the same format as other functions in noises.py, write a function for
random_noise(). This function will play one of the five cat noise mp3 files in the sound folder randomly.