Check out example codes for "alarm when code finishes". It will help you in understanding the concepts better.

Code Example 1

import winsound duration = 1000  # milliseconds freq = 440  # Hz winsound.Beep(freq, duration)

Learn ReactJs, React Native from akashmittal.com