Text input

Bjorn Pettersen bjorn at roguewave.com
Mon Sep 4 14:11:28 EDT 2000


F:\>f:\bin\python16\python.exe
Python 1.6b1 (#0, Aug  7 2000, 12:30:24) [MSC 32 bit (Intel)] on win32
Copyright (c) Corporation for National Research Initiatives.
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
>>> name = raw_input("Input your name: ")
Input your name: Bill
>>> print name
Bill
>>>

-b

Kevin Breit wrote:
> 
> Hey,
>         warning: newbie question I am trying to figure out how to take text from
>         keyboard.  I want it to basically do something like this:
> Input your name: <user types in>Bill</user types in> I can't figure out
> how to do this!
> Thanks
> Kevin
> 
> --
> http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list