<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><span>Hi Steven. <br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span><br>
  </span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>Thank you for your answer below. The program now runs, using print("Game Over"). <br>
  </span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>I use Python 3..; but the book - <span style="font-weight: bold;">python for absolute beginner</span> - that I have is an old (<span style="font-weight: bold;">2003</span>) edition. I don't know how this combination may affect my learning, going forward. Could you please suggest how I can something current. <br>
  </span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br>
  <span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>Regards.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br>
  <span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>Tayo.<br></span></div>
<br>
 <div class="yui_3_2_0_32_134711824117460" style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 12pt;"><br>
 </div>My answer to your question appears below:<br><div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><br><br>On Sun, Sep 09, 2012 at 03:56:22PM -0700, tayo rotimi wrote:<br>> My first exercise: print "Game Over" does not run! Where have I missed it? The error message is as follows:<br>> <br>> ?File "<stdin>", line 1<br>> ?? print "Game Over"<br>> ??? ??? ??? ??? ??? ^<br>> ?SyntaxError: invalid syntax <br><br><br>Are you using Python 3 instead of Python 2?<br><br>One of the changes between the 2.x versions and the 3.x versions is that <br>print is no longer a statement, but is now a function. That means you <br>have to write it using round brackets (parentheses for Americans):<br><br># version 2.x<br>print "Game Over"<br><br># version 3.x<br>print("Game Over")<br><br><br>For simple printing, there's
 not much advantage either way, but for more <br>advanced printing, the function form is much better.<br><br><br><br>-- <br>Steven<br><br><br> </div> </div>  </div></body></html>