[Tutor] python module

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Thu, 10 May 2001 03:43:53 -0700 (PDT)


On Thu, 10 May 2001, Mr. Razak wrote:

> 1. I want to know how's the module work and how to used them.

Modules are usually themselves written in Python.  Each Python script can
be seen as a module, which is nice because it's very casual.


> 2. How to set path during programming.

I'm not quite sure I understand what you mean.  Can you explain how you'll
use this?


> 3. How to print, how to activate printer, how to set them on and off
> and is it user friendly.

If you mean "printing" as in printing to a laser/inkjet printer, this
isn't too hard, but you'll need to learn some Python to have it print out
nice documents.  If you mean "printing" as in printing text to your
screen, this is much easier:

###
print "hello world"
###

is enough to put the words "hello world" on your screen.


Good luck to you.