[Tutor] using the modules and command prompt

Mike Wagman mwagman at charter.net
Sun Aug 31 20:15:40 EDT 2003


I think you are looking for interactive mode.

from a command prompt

python -i 

from there you can import and work with modules - test code etc.

You can also go python -i (name of your program)

This runs the program and when it exits you have a prompt with all
modules and variables still intact. 

On Sun, 2003-08-31 at 13:54, Matthew Bielby wrote:
> i am new to all forms of programming and python was suggested to me as 
> simple to use and i have found the simple commands easy to do. Now i want to 
> use the winsound module - but i dont know how. I would also like to know/if 
> how you can python to open up cmd.exe or similar and run commands such as 
> ping.
> Many thanks
> Matthew
> 
> _________________________________________________________________
> On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor




More information about the Tutor mailing list