Home Questions Articles Browse Topics Latest Top Members FAQ
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?
On May 3, 8:43 pm, noagbodjivic...@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é
Replies have been disabled for this discussion.