heres a dumb question....

jim.vickroy jim.vickroy at noaa.gov
Mon Feb 4 21:09:32 CET 2002


How about the raw_input() function?

> x = raw_input('Enter an integer: ') # Enter 123
> x
123

The prompt string (e.g., 'Enter an integer: ') is optional.


Jeremy Bush wrote:

> Hello, ive just started fooling around with python, I know C++ pretty well,
> and it looks familiar.  The only problem im having is a cant seem to figure
> out how to get keyboard input...ive read the whole readme that came with it,
> the tutorial, everything.  I just want to know how to do a simple "cin >>
> X;"  Can anyone help?




More information about the Python-list mailing list