[Tutor] Python Question
Cranky Frankie
cranky.frankie at gmail.com
Wed Jan 9 13:45:33 CET 2013
Dylan Kaufman <ketchup.candy at gmail.com> wrote:
<<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>>
snip the rest
I was able to get this to work in Python 3.2 under Windows 7 by
changing all occurances of "Beep" to "winsound.Beep"
--
Frank L. "Cranky Frankie" Palmeri
Risible Riding Raconteur & Writer
“Take the risks and you’ll get the payoffs. Learn from
your mistakes until you succeed. It’s that simple.”
- Bobby Flay
More information about the Tutor
mailing list