The Python shell is showing me this error
Traceback (most recent call last):
  File "C:\Users\DELL\Desktop\winsound.py", line 1, in <module>
    import winsound
  File "C:\Users\DELL\Desktop\winsound.py", line 5, in <module>
    winsound.beep(frequency,duration)
AttributeError: 'module' object has no attribute 'beep'
Code in winsound.py
import winsound 
from random import randrange 
frequency = randrange(5000) 
duration = randrange (2000) 
winsound.beep(frequency,duration)
 
     
    