<br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 12:07 PM, Randy WhiteWolf <span dir="ltr"><<a href="mailto:randywhitewolf@ymail.com" target="_blank">randywhitewolf@ymail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:lucida console,sans-serif"><div>I am an older newbie teaching myself Python programming. I copied the code # Emonstrates escape sequences. This exercise is on page 22 of the Phthon Programming for the Absolute Beginner by Michael Dawson. I have copied the code verbatim below.</div>
<div> </div>
<div> </div>
<div> </div>
<div># Sound the system bell</div>
<div>print "\a"</div>
<div> </div>
<div>print "\t\t\tFancy Credits"</div>
<div> </div>
<div>print "\t\t\t \\ \\ \\ \\ \\ \\ \\"</div>
<div>print "\t\t\t\tby</div>
<div>print "\t\t\tMichael Dawson</div>
<div>print "\t\t\t \\ \\ \\ \\ \\ \\ \\"</div>
<div>print "\nSpecial thanks goes out to:"</div>
<div>print "My hair stylist. Henry \'The Great\', who never says \"can\'t\"."</div>
<div> </div>
<div>raw_input ("\n\nPress the enter key to exit.")</div>
<div> </div>
<div> </div>
<div>My problem is I hear no system bell; the enter doesn't respond by quitting the program; The problem with the program code the enter key hasn't worked in earlier programs.</div>
<div> </div>
<div>I appreciate any advice I may recieve with this coding glitch.</div>
<div> </div>
<div>Sincerely,</div>
<div>Randy<var></var></div></div></div><br>_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>I just tried your code and it worked for me. Like Alan and Steven have pointed out already, sounding the system bell depends on how you are running the code and your platform. <br><br>On my computer I have Putty installed which I use to connect remotely to my server - so running that script remotely will not produce any sound. However, it worked when saved and run locally on my Windows computer. <br>
<br>If on windows try this -<br>>>> print '\a'<br><br><br>If it still does not work make sure that your sound card is functioning and the volume it not muted.<br>
<br>Good luck.<br>