When does input() return an empty string?

noagbodjivictor at gmail.com noagbodjivictor at gmail.com
Thu May 3 19:52:34 EDT 2007


On May 3, 7:50 pm, André <andre.robe... at gmail.com> wrote:
> On May 3, 8:43 pm, noagbodjivic... at gmail.com wrote:
>
> > I'm filling an array with user input, I want an empty string to be
> > returned when nothing is entered; ie return key hit twice... How do I
> > do that?
>
> use raw_input(), not input().  input() attempts to evaluate the
> result, assuming it is a valid python expression.
>
> André

Thanks




More information about the Python-list mailing list