i get different answers based on run platform

Ethan Furman ethan at stoneleaf.us
Thu Jul 7 17:42:45 EDT 2011

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 IDLE correctly
> identifying palindromes and Windows not.  I do suspect it may be a
> trailing '\r' issue.  Is there an easy fix or shall I wait for the new
> Python versions to be released?  Thanks for helping.

My apologies -- change the '\n' to '\r' and that will hopefully do the 


More information about the Python-list mailing list