keyword checker - keyword.kwlist

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu May 10 19:05:48 EDT 2007


En Thu, 10 May 2007 17:03:13 -0300, <tom at finland.com> escribió:

> I tried the trick but the error stays. I really don't know what to do
> anymore.
>
> And what about the print function. Why does it print newline even if
> there is colon after variable? I'm lost.
>
> I'm using Eclipe enviroment and Pydev for it. My python interpreter is
> 2.5.1.

To see exactly what you get, use repr(my_input). I think that you will get  
'else\n'
Try again using

my_input = raw_input("...").strip()

as Peter Otten suggested before

-- 
Gabriel Genellina




More information about the Python-list mailing list