i get different answers based on run platform

linda postslot at gmail.com
Thu Jul 7 17:37:14 EDT 2011


On Jul 7, 2:42 pm, Ethan Furman <et... at stoneleaf.us> 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 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
> trick.
>
> ~Ethan~

Thanks Ethan--that did work :)



More information about the Python-list mailing list