I have this simple palindrome program that yields different results
depending on whether I run it from Windows or from IDLE. The answer
is correct off IDLE, but why is this the case? Here's the code:
def reverse(text):
return text[::-1]
def is_palindrome(text):
return text==reverse(text)
I tried something = input('enter text:').rstrip('\n') as suggested but
the problem persists. BTW, the intermediate print commands agree and
so are not an issue. The disagreement is in IDLE correctly
identifying palindromes and Windows not. I do suspect it may be a
trailing '\r' issue. Is there
On Jul 7, 2:42 pm, Ethan Furman wrote:
> linda wrote:
> > I tried something = input('enter text:').rstrip('\n') as suggested but
> > the problem persists. BTW, the intermediate print commands agree and
> > so are not an issue. The disagreement is in I
be able to find the files that i imported with the COLLECT statement, even
though in my source code all the file locations are relative. I get an error
that goes something like... Cannot find the file or directory named
'./icons/splash.bmp' although it is clearly there.
Any ideas?
Thanks,
Linda
--
http://mail.python.org/mailman/listinfo/python-list
Do you have styles attached to the text of the document in the xls? (bold,
italic, etc)
if not, then you can just do the mapping by creating table and cells by
yourself... (or xslt)
{^(00)^} LiNdA OcTaLiNa
---GeEeEee---
From: Jeremiah Dodds <[EM
4332951--
http://mail.python.org/mailman/listinfo/python-list