What is the python code to emit a beep sound of 5 seconds?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the python code to emit a beep sound of 5 seconds??

I need coding for above problem

24th Nov 2018, 12:10 AM
M A Mohmad Ashik
M A Mohmad Ashik - avatar
4 Answers
+ 1
Hey Mohmad Ashik M A ! I would recommend trying to solve the problem yourself rather than asking people to do it instead as it helps you grow as a programmer. If you have any questions regarding specific problems while making it, then it would be fine asking for help at that point. https://www.sololearn.com/discuss/1316935/?ref=app
24th Nov 2018, 12:42 AM
Faisal
Faisal - avatar
0
You can use the windsound módulo in Windows
24th Nov 2018, 12:41 AM
Luiz Santos
Luiz Santos - avatar
0
Print \a should work right ?
24th Nov 2018, 5:21 AM
Taste
Taste - avatar
0
import winsound frequency=2500 duration=5000 #1000ms = 1sec winsound.Beep(f,d)
7th Jul 2019, 9:48 AM
Nandani Bansal
Nandani Bansal - avatar