Don't be embarrassed -- at least this one is easy to answer :-)
You can read n characters from any open file using fp.read(n). You
can read until EOF using fp.read(). (Here fp is the file pointer --
read is a method. Check the library manual for more file methods.)
Standard input is sys.stdin. Check the library manual for module sys.
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>