How to read keyboard input

Daniel Klein DanielK at aracnet.com
Sun Dec 24 01:42:50 EST 2000


If you want to get input from stdin then:

    >>> reply = raw_input("Do you have a dead parrot? ")
    Do you have a dead parrot? Yes
    >>> reply
    'Yes'

HTH,

Dan:

"Calvin Fong" <ee_fhw at stu.ust.hk> wrote in message
news:3A443B15.C7E926A at stu.ust.hk...
> Dear all,
>     I'm finding a fcuntion to read the input of keyboard
>     is it something like getchar, i just get lost.
>     anyone know it?
> Yours
> Calvin
>





More information about the Python-list mailing list