When I try to run the following piece of code, I get a SyntaxError,
can someone help me out on this?

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

What am I missing?

Thanks in advance,
Kris
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to