Using len()

2006-03-11 Thread ctilly
I have what I think is a very simple question. I have a Python script that I found that I want to tweek a little bit. All I want to do is add in a validator to make sure a value has been keyed into the imput box. The code currently is... while yourguess != mynum: tries = tries + 1

ERROR when hitting RETURN on INPUT

2006-03-11 Thread ctilly
How do you prevent getting the following error when you hit the RETURN key on an empty INPUT prompt from windows? If I am at the Interactive Window and I type in: input("blah"), I get an input dialog. If I then hit ENTER w/o keying in a value I get the following error. WHY SyntaxError: unex

Re: Using len()

2006-03-11 Thread ctilly
That works, thanks. Can you tell me why the differences exist? -- http://mail.python.org/mailman/listinfo/python-list