i get different answers based on run platform

2011-07-07 Thread linda
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)

Re: i get different answers based on run platform

2011-07-07 Thread linda
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

Re: i get different answers based on run platform

2011-07-07 Thread linda
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

including folders with McMillan Installer

2005-01-11 Thread Linda Eyambe
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

Re: Converting a .xls file to .html

2008-12-03 Thread Linda Octalina
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

Python vs. Perl, which is better to learn?

2008-03-29 Thread linda vogele
4332951-- http://mail.python.org/mailman/listinfo/python-list