[Tutor] how to pass arguments to script

Alan Gauld alan.gauld at btinternet.com
Mon Sep 9 05:40:31 EDT 2019


On 09/09/2019 09:47, Alan Gauld via Tutor wrote:
>
> Or read the documentation on sys.stdin

Sorry, that was meant to be sys.argv...

Although you could use sys.stdin too, if you use stdin instead of
a file for input via a pipe....

-- 

Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list