> Think the mail system screwed up the formatting! But am fairly sure
> that I have indented it correctly in the console. Try and Except are
> in the column. Any other hints?

Yes :). Compare:

 >>> try:
...   os.system('cls')
... except:
...   print "Foo"
...
Foo
 >>> print "Bar"
Bar

With (what you had):

 >>> try:
...   os.system('cls')
... except:
...   print "Foo"
... print "Bar"
   File "<stdin>", line 5
     print "Bar"
         ^
SyntaxError: invalid syntax

Subtle, but important difference. You should terminate the try-except 
block (confirm with extra ENTER) before doing more stuff.

-- 
Yours,

Andrei

=====
Mail address in header catches spam. Real contact info:
''.join([''.join(s) for s in zip(
"[EMAIL PROTECTED] pmfe!Pes ontuei ulcpss  edtels,s hr' one oC.",
"rjc5wndon.Sa-re laed o s npbi ot.Ira h it oteesn edt C")])

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to