[Tutor] module problems

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Wed May 5 13:52:03 EDT 2004



On Tue, 4 May 2004 CMAnastasi at aol.com wrote:

> I'm importing the string module and using the functions but getting no
> result from any of them.

Hi CMAnastasi,

Can you show us what you're doing?  Do a cut-and-paste of the text that
you're typing, as well as the response from Python, and send the reply
back to the list.  We need more information to see what's going on.


(There are several problems that fit the symptom of "not getting any
result" --- that's why we need to narrow down the possibilities a little
more.)



The Official Python Tutorial has a sample that shows how to use a module:

http://www.python.org/doc/tut/node8.html#SECTION008200000000000000000

Test to see if you can import the 'sys' module from the interactive
prompt.




More information about the Tutor mailing list