Often one faces a situation where your code takes extremely long to run and you don’t want to be staring at it all the time but want to know when it is done.
In engineering analysis, simulation take a long time to run and the python driver program take a long time to finish and I face this problem a lot.
A simple solution is adding a beep at the end, here’s how to do it in python.
def beep(): print "\a" beep()
works on windows/ linux/mac without any modification.