[Tutor] Python Question

Dylan Kaufman ketchup.candy at gmail.com
Tue Jan 8 00:31:02 CET 2013


Greetings,

I take Computer Science in school and for a Python program, I have:

from winsound import Beep

Beep(196, 1500)#G
Beep(262, 270)#C
Beep(196, 200)#G
Beep(165, 300)#E
Beep(175, 200)#F
Beep(196, 200)#G
Beep(262, 550)#C
Beep(196, 200)#G
Beep(208, 150)#G#
Beep(196, 200)#G
Beep(175, 200)#F
Beep(165, 200)#E
Beep(175, 200)#F
Beep(147, 200)#Low D
Beep(131, 750)#Low C
Beep(131, 150)#Low C
Beep(131, 350)#Low C
Beep(131, 150)#Low C
Beep(262, 350)#C
Beep(262, 150)#C
Beep(247, 350)#B
Beep(247, 150)#B
Beep(220, 350)#A
Beep(220, 150)#A
Beep(294, 200)#D
Beep(294, 200)#D
Beep(294, 200)#D
Beep(294, 200)#D
Beep(247, 200)#B
Beep(220, 200)#A
Beep(196, 550)#G
Beep(196, 150)#G
Beep(220, 200)#A
Beep(220, 200)#A
Beep(220, 200)#A
Beep(220, 200)#A
Beep(220, 200)#A
Beep(247, 200)#B
Beep(262, 300)#C
Beep(196, 150)#G
Beep(165, 300)#E
Beep(196, 150)#G
Beep(165, 200)#E
Beep(165, 200)#E

When I run it at school it works great, but at home when I try to run it,
it says:

Traceback (most recent call last):
  File "/Volumes/PICKLES/School/MyClass/Comp. Sci/Chapter 02
Stuff/program2_cep.py", line 5, in <module>
    from winsound import Beep
ImportError: No module named 'winsound'

Could you tell why this is happening  and how I can make my program work?
-- 
--Dylan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130107/7f3ce8ad/attachment.html>


More information about the Tutor mailing list