"Boykie Mackay" <[EMAIL PROTECTED]> wrote

> Is there any simple way of getting parameter input from the user?
>
> What I want to do is to type in two (or more) values on the command
> prompt and have a function do some work on them and return a result.

Take a look at sys.argv.

And then take a look at my "talking to the user" topic in my tutorial.
The last section covers use of argv to get parameters from the user.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 


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

Reply via email to