"beep" output in Python


#1

How do I make Python output a “beep”? I’ve tried:

print(’\a’)

and

import os
os.system(’\a’)


#2

This won’t work on Cloud9. The code is executed on the server rather than your computer. Essentially, you may be generating a beep, but it’ll be coming out of a server farm in a remote location. If you need to output a beep with Cloud9, you can install Ubuntu on your computer, set it up as an SSH workspace, and run the code, which will execute on the computer; needless to say, this is fairly roundabout and eliminates the benefits of working in the cloud!


#3

Thanks for the quick and concise reply.