Getting input the scanf way

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Jul 1 12:39:18 EDT 2009


Mr.SpOOn a écrit :
> Hi,
> I need to do some kind of interactive command line program.
> 
> I mean: I run the program, it asks me for input, I type something and
> then I get the output or other questions.
> I'm not sure what is the right way to achieve this.

Simplest : use raw_input()
Friendlier (at least on *n*x platforms) : use readline.

HTH



More information about the Python-list mailing list