I am in a situation where my code takes extremely long to run and I don\'t want to be staring at it all the time but want to know when it is done.
How can I make the (Py
This one seems to work on both Windows and Linux* (from this question):
def beep():
print("\a")
beep()
In Windows, can put at the end:
import winsound
winsound.Beep(500, 1000)
where 500 is the frequency in Herz
1000 is the duration in miliseconds
To work on Linux, you may need to do the following (from QO's comment):