question about input() and/or raw_input()

Grant Edwards invalid at invalid.invalid
Sun Jan 19 11:14:48 EST 2014


On 2014-01-18, Terry Reedy <tjreedy at udel.edu> wrote:
> On 1/18/2014 1:30 PM, Roy Smith wrote:
>> Pardon me for being cynical, but in the entire history of the universe,
>> has anybody ever used input()/raw_input() for anything other than a
>> homework problem?
>
> Homework problems (and 'toy' programs, such as hangman), whether in a 
> programming class or elsewhere, are one of the intended use cases of 
> Python. How else would you get interactive input without the complexity 
> of a gui?

sys.stdin.readline()




More information about the Python-list mailing list