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

andy surany mongo57a@comcast.net
Sun Dec 22 10:19:02 2002


You might want to check your indentation.....
-----Original Message-----
From: Adam Vardy <anvardy@roadrunner.nf.net>
To: Ole Jensen <ole_jensen@dbmail.dk>; tutor@python.org
<tutor@python.org>
Date: Sunday, December 22, 2002 10:07 AM
Subject: Re: [Tutor] NEWBIE QUEASTION ALERT - how to restart program?


>
>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
>
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor