> i want to pass an argument (a number) to a python > script when running it: >> python script.py <number> > > i want to be able to use <number> within script.py > as a parameter. > > how do i set this up?
This is covered in the 'talking to the user' topic in my tutorial. The short answer is use sys.argv Alan G Author of the learn to program web tutor http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor