User Input?
David Porter
jcm at bigskytel.com
Sat Jun 3 23:03:21 EDT 2000
* Michael Morrison <borlak at home.com>:
> Is there an easy way to do user input in python? I found a non-standard
> module, but it looked too complicated (not something I'd expect from the
> ease-of-use I've had so far).
> Example: python blah.py
> Name? (type in name)
> Address? (type in address)
> etc....
Looks like you want raw_input:
name = raw_input("Name? ")
address = raw_input("Address? ")
print name, address
see: http://python.org/doc/current/lib/built-in-funcs.html
David
--
Stop! -- e.e.cummings in a blender
More information about the Python-list
mailing list