Taking Inputs

Steve Holden sholden at holdenweb.com
Thu Oct 25 02:35:29 CEST 2001


"Anita Kommineni" <gec_anita at rediffmail.com> wrote ...
> For using input and raw_input do I need to import any specific modules

Nope, they are built in:

Python 2.1.1 (#2, Sep 26 2001, 09:32:53)
[GCC 2.95.3-5 (cygwin special)] on cygwin
Type "copyright", "credits" or "license" for more information.
>>> a = raw_input("Yes: ")
Yes: a
>>> a = input("What:")
What: 123
>>>

Don't you have an interpreter to try it yourself? See www.python.org

:-)

regards
 Steve
-- 
http://www.holdenweb.com/








More information about the Python-list mailing list