[OT] Supporting homework (was: Re: Checking a Number for Palindromic Behavior)

2009-10-22 Thread Dieter Maurer
Steven D'Aprano ste...@remove.this.cybersource.com.au writes on 20 Oct 2009 05:35:18 GMT: As far as I'm concerned, asking for help on homework without being honest up-front about it and making an effort first, is cheating by breaking the social contract. Anyone who rewards cheaters by giving

Re: Checking a Number for Palindromic Behavior

2009-10-22 Thread Steven D'Aprano
On Wed, 21 Oct 2009 22:53:29 -0700, rurpy wrote: On 10/21/2009 03:13 PM, Lie Ryan wrote: ru...@yahoo.com wrote: On 10/21/2009 01:40 AM, Lie Ryan wrote: [...] As a metaphor, which one do you think is better in the long term: charities or microcredits? Both of course. Why on earth

Re: Checking a Number for Palindromic Behavior

2009-10-22 Thread rurpy
On 10/21/2009 03:13 PM, Lie Ryan wrote: ru...@yahoo.com wrote: On 10/21/2009 01:40 AM, Lie Ryan wrote: [...] As a metaphor, which one do you think is better in the long term: charities or microcredits? Both of course. Why on earth would anyone think there is a simple, single, best

Re: Checking a Number for Palindromic Behavior

2009-10-22 Thread rurpy
On 10/22/2009 12:35 AM, Steven D'Aprano wrote: On Wed, 21 Oct 2009 22:53:29 -0700, rurpy wrote: On 10/21/2009 03:13 PM, Lie Ryan wrote: ru...@yahoo.com wrote: On 10/21/2009 01:40 AM, Lie Ryan wrote: [...] As a metaphor, which one do you think is better in the long term: charities or

Re: [OT] Supporting homework (was: Re: Checking a Number for Palindromic Behavior)

2009-10-22 Thread Stephen Hansen
On Wed, Oct 21, 2009 at 10:04 PM, Dieter Maurer die...@handshake.de wrote: Steven D'Aprano ste...@remove.this.cybersource.com.au writes on 20 Oct 2009 05:35:18 GMT: As far as I'm concerned, asking for help on homework without being honest up-front about it and making an effort first, is

Re: [OT] Supporting homework (was: Re: Checking a Number for Palindromic Behavior)

2009-10-22 Thread Andre Engels
On Thu, Oct 22, 2009 at 7:04 AM, Dieter Maurer die...@handshake.de wrote: Steven D'Aprano ste...@remove.this.cybersource.com.au writes on 20 Oct 2009 05:35:18 GMT: As far as I'm concerned, asking for help on homework without being honest up-front about it and making an effort first, is

Re: Supporting homework (was: Re: Checking a Number for Palindromic Behavior)

2009-10-22 Thread rurpy
On 10/22/2009 02:24 AM, Andre Engels wrote: On Thu, Oct 22, 2009 at 7:04 AM, Dieter Maurer die...@handshake.de wrote: Steven D'Aprano ste...@remove.this.cybersource.com.au writes on 20 Oct 2009 05:35:18 GMT: As far as I'm concerned, asking for help on homework without being honest up-front

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread Lie Ryan
ru...@yahoo.com wrote: 1) It may look like a homework problem to you but it probably isn't. Seehttp://groups.google.com/group/comp.lang.python/msg/8ac6db43b09fdc92 Homework comes in many forms - school driven homework should be treated the same as self driven research, IMO. You're not doing

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread rurpy
On 10/20/2009 11:48 AM, Falcolas wrote: On Oct 20, 11:18 am, ru...@yahoo.com wrote: Why *not* answering a question in comp.lang.python because you think it is homework is BAD. I got a little over-hyperbolic above and muddied the waters. More accurately, this should have been, Why insisting

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread Falcolas
On Oct 20, 11:18 am, ru...@yahoo.com wrote: Why *not* answering a question in comp.lang.python because you think it is homework is BAD. 1) It may look like a homework problem to you but it  probably isn't.  Seehttp://groups.google.com/group/comp.lang.python/msg/8ac6db43b09fdc92 Homework

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread rurpy
On 10/21/2009 01:40 AM, Lie Ryan wrote: ru...@yahoo.com wrote: 1) It may look like a homework problem to you but it probably isn't. Seehttp://groups.google.com/group/comp.lang.python/msg/8ac6db43b09fdc92 Homework comes in many forms - school driven homework should be treated the same as

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread Tim Chase
ru...@yahoo.com wrote: On 10/21/2009 01:40 AM, Lie Ryan wrote: ru...@yahoo.com wrote: 1) It may look like a homework problem to you but it probably isn't. Seehttp://groups.google.com/group/comp.lang.python/msg/8ac6db43b09fdc92 Homework comes in many forms - school driven homework should be

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread Lie Ryan
ru...@yahoo.com wrote: On 10/21/2009 01:40 AM, Lie Ryan wrote: ru...@yahoo.com wrote: 1) It may look like a homework problem to you but it probably isn't. Seehttp://groups.google.com/group/comp.lang.python/msg/8ac6db43b09fdc92 Homework comes in many forms - school driven homework should be

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread rurpy
On 10/21/2009 02:56 PM, Tim Chase wrote: ru...@yahoo.com wrote: On 10/21/2009 01:40 AM, Lie Ryan wrote: ru...@yahoo.com wrote: 1) It may look like a homework problem to you but it probably isn't. Seehttp://groups.google.com/group/comp.lang.python/msg/8ac6db43b09fdc92 Homework comes in

Re: Checking a Number for Palindromic Behavior

2009-10-20 Thread Steven D'Aprano
On Mon, 19 Oct 2009 13:29:52 -0700, Ethan Furman wrote: Your arguments are most persuasive. Consider me convinced. Even if the worst-case scenario is true (homework problem, ack!), either the poster will learn from the answer in which case all is well, or the poster will not, in which case

Re: Checking a Number for Palindromic Behavior

2009-10-20 Thread Benjamin Middaugh
Actually I was working on a program to test the so-called 196-algorithm as an extracurricular activity. MRAB was most helpful with pointing out what I should have already thought of. My previous attempts were hampered by my limited knowledge of python, and I had already mentally committed to

Re: Checking a Number for Palindromic Behavior

2009-10-20 Thread MRAB
Benjamin Middaugh wrote: Actually I was working on a program to test the so-called 196-algorithm as an extracurricular activity. MRAB was most helpful with pointing out what I should have already thought of. My previous attempts were hampered by my limited knowledge of python, and I had

Re: Checking a Number for Palindromic Behavior

2009-10-20 Thread rurpy
On 10/19/2009 03:24 PM, ru...@yahoo.com wrote: You think that was homework? Perhaps so but for the record here are some posts by some other people who suspected homework in the very recent past... Updated... 2009-10-20

Re: Checking a Number for Palindromic Behavior

2009-10-20 Thread rurpy
On 10/20/2009 03:16 PM, Steven D'Aprano wrote: On Tue, 20 Oct 2009 10:18:55 -0700, rurpy wrote: 6) Please don't apply your abstract moral standards to the entire rest of the world, knowing nothing about the particular circumstances of the poster. Perhaps you should apply this rule to

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread rurpy
On Oct 18, 11:54 pm, alex23 wuwe...@gmail.com wrote: ru...@yahoo.com wrote: One, it was suggested without any evidence the the OP was probably asking about homework. My observation over several years is that this group has a very poor record of identifying homework problems. And if someone

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread Ethan Furman
gslindstrom wrote: On Oct 18, 5:56 pm, Gary Herron gher...@digipen.edu wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm having trouble solving. I want to check a number for palindromic behavior (reading the

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread rurpy
On Oct 19, 12:41 pm, Ethan Furman et...@stoneleaf.us wrote: gslindstrom wrote: On Oct 18, 5:56 pm, Gary Herron gher...@digipen.edu wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm having trouble solving. I

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread Ethan Furman
ru...@yahoo.com wrote: On Oct 19, 12:41 pm, Ethan Furman et...@stoneleaf.us wrote: gslindstrom wrote: On Oct 18, 5:56 pm, Gary Herron gher...@digipen.edu wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread Andrew Henshaw
ru...@yahoo.com wrote in message news:63dea9e7-97af-4b20-aa0a-c762d9944...@a21g2000yqc.googlegroups.com... On Oct 18, 4:20 pm, MRAB pyt...@mrabarnett.plus.com wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread rurpy
On Oct 18, 4:56 pm, Gary Herron gher...@digipen.edu wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm having trouble solving. I want to check a number for palindromic behavior (reading the same backwards

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread Guyon Morée
def is_palidrome (n):    return str(n) == ''.join (reversed (str(n))) which will return True if integer n is a palidromic or False otherwise. I wouldn't normally provide a direct solution to this type of request; but since you have, may I suggest: def is_palindrome (n):     return

Checking a Number for Palindromic Behavior

2009-10-18 Thread Benjamin Middaugh
Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm having trouble solving. I want to check a number for palindromic behavior (reading the same backwards and forwards). So if I have an integer 1457 it can tell me this is not the same from both

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread Gary Herron
Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm having trouble solving. I want to check a number for palindromic behavior (reading the same backwards and forwards). So if I have an integer 1457 it can tell me this

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread rurpy
On Oct 18, 4:20 pm, MRAB pyt...@mrabarnett.plus.com wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm having trouble solving. I want to check a number for palindromic behavior (reading the same backwards and

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread alex23
On Oct 19, 12:32 pm, ru...@yahoo.com wrote: On Oct 18, 4:20 pm, MRAB pyt...@mrabarnett.plus.com wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm having trouble solving. I want to check a number for

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread rurpy
On Oct 18, 9:45 pm, alex23 wuwe...@gmail.com wrote: On Oct 19, 12:32 pm, ru...@yahoo.com wrote: On Oct 18, 4:20 pm, MRAB pyt...@mrabarnett.plus.com wrote: Benjamin Middaugh wrote: Thanks to everyone who helped with my query on reversing integers. I have one more simple problem I'm

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread alex23
ru...@yahoo.com wrote: One, it was suggested without any evidence the the OP was probably asking about homework.  My observation over several years is that this group has a very poor record of identifying homework problems.  And if someone can conclude that the OPs problem was homework with