[Tutor] functions, system statements, sleep
Matthias Hager
martok@mattsmail.com
Fri, 19 Jan 2001 06:07:31 -0800
I'm a complete idiot, but when I create a function in Python, how do I run it? Say I create a function that has a main menu. And after the user goes through the introductory, how can I run the main_menu function?
How can I get the python interpreter to run a Unix system function? Like say I want it to use 'clear' (Adequately used to clear the screen) How can I get my program, runing in command line to do that?
And is there a sleep function in Python, that will make it wait for a couple of seconds before doing anything? There is one in Perl, and I find it really useful.
--
%%%################?????????###################^^^
martok@mattsmail.com
http://mymymatthias.tripod.com/
%%%################????????####################^^^
--
Like my email address? Get your own for FREE at http://firstname.com
Get you@JohnsMail.com or you@AlexsMail.com or pick from 500 more!