[Tutor] NEWBIE QUEASTION ALERT - how to restart program?

Adam Vardy Adam Vardy <anvardy@roadrunner.nf.net>
Sun Dec 22 10:06:42 2002


Friday, December 20, 2002, 8:56:55 PM, you wrote:

>> This program has been modified from the area calculator found in the instant hacking tutorial http://www.hetland.org/python/instant-hacking.php
>> ___________________________________________________________________________
>>   # Area calculator
>>   print "WELCOME TO THE AREA CALCULATOR"
>>   print "------------------------------"
>>   print ""
>>   print ""

<<snip>>

I thought this looked like a straightforward like program. But, then I
tried it. In PythonWin, when I ran it, it gave a sort of prompt, but
none of the print statements appeared you have there.  And kind of
hung at that point. hmm..

Then I tried typing a command.

--------------------------------------------------------------------

>python areacalc.py
  File "areacalc.py", line 84
    elif quad_shape== 2:
       ^
SyntaxError: invalid syntax


-- 
Adam Vardy