[Tutor] input with default value option

Bob Gailer bgailer at alum.rpi.edu
Tue Apr 11 07:03:20 CEST 2006

Keo Sophon wrote:
> Hi,
> With raw_input(), it allows to input value. Can it be used to input value with default value option?
response = raw_input("Enter some data:")
if not response: response = "default value"

More information about the Tutor mailing list