Hi all... I am working from the Learning Python 3rd edition published by O&#39;Reily... FYI I am trying to learn Python on my own (not for course credit or anything).. I am a psychologist with very limited programming experience.. I am anal, and this example code doesn&#39;t work.. I am using IDLE to do everything (ni ni ni ni ni)  <br>
<br>So here is the code the book give me.. <br><br>while True:<br>    reply = raw_input(&#39;Enter text:&#39;)<br>    if reply == &#39;stop&#39;:<br>        break<br>    elif not reply.isdigit(  ):<br>        print &#39;Bad!&#39; * 8<br>
    else:<br>        print int(reply) ** 2<br>print &#39;Bye&#39;<br><br><br>Idle gives me this error  SyntaxError: invalid syntax (it highlights the word print in the print &#39;bye&#39; line.. <br><br>This bugs me!  I don&#39;t know why it&#39;s not working.. However, I know it is in the print line... because When I get rid of print it does everything it is supposed to do..it collects my input and provides feedback.. <br>
<br>The print line is supposed to print &#39;Bye&#39; when you type stop... The book uses 2.5 I&#39;m using 2.6, but I have no idea what is not working..Any hints?  <br><br>All help is much appreciated! <br><br>Brian D<br>