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 IDLE correctly
> > identifying palindromes and
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' is
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 07/07/2011 19:37, John Gordon wrote:
In<842fce9d-1b3f-434a-b748-a6dc4828c...@h12g2000pro.googlegroups.com>
linda writes:
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
John Gordon wrote:
By the way, I could not make your program work as you provided it; I had
to replace input() with raw_input(). Does it really work for you this way?
input() is the 3.x name for raw_input()
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
On 07/07/2011 19:18, linda wrote:
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(
linda wrote:
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
In <842fce9d-1b3f-434a-b748-a6dc4828c...@h12g2000pro.googlegroups.com> linda
writes:
> 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:
Yo
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)