How to read keyboard input

Daniel Klein DanielK at
Sun Dec 24 07:42:50 CET 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



"Calvin Fong" <ee_fhw at> wrote in message
news:3A443B15.C7E926A at
> 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