[Tutor] newbie programmer

Tom Plunket py-tutor@fancy.org
Wed Jun 4 15:03:03 2003


Dirigo wrote:

> > use the operating system command:
> > 
> > os.system('CLS)  # DOS
> 
> Tried this within the Python command line window and got error 
> message which read  "NameError:  name 'os' is not defined".   I 
> tried both os.system('CLS') and os.system("CLS") and got the same 
> results.

Ahh- this means that you need to do "import os" first.  ;)  And
yes, you do need quotes on both sides of 'cls'.

Good luck.


-tom!