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

2009-10-23 Thread Mel
Dieter Maurer wrote: > Steven D'Aprano 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 them the

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 wrote: >> Steven D'Aprano 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 cheatin

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 wrote: > Steven D'Aprano 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 r

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 wrote: > Steven D'Aprano 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 w

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

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 >> >

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? >>> >> >>> >>

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

2009-10-22 Thread Dieter Maurer
Steven D'Aprano 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 them the answer > they want is pa

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

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 t

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 t

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 >>> trea

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 Homewor

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 insistin

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread rurpy
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. See http://groups.google.com/group/comp.lang.python/msg/8ac6db43b09fdc92 2) When you publicly accuse someone of "cheating" (and even

Re: Checking a Number for Palindromic Behavior

2009-10-21 Thread Steven D'Aprano
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 yourself, and stop telling us how to respond to pe

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 it

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 rul

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 http://groups.google.com/group/comp.lang.python/browse_frm/thread/f7a8

Re: Checking a Number for Palindromic Behavior

2009-10-20 Thread Ethan Furman
Steven D'Aprano wrote: 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 wi

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 already

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 my

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

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): >  

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread rurpy
On Oct 18, 4:56 pm, Gary Herron 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 forwards

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread Andrew Henshaw
> wrote in message >news:63dea9e7-97af-4b20-aa0a-c762d9944...@a21g2000yqc.googlegroups.com... >On Oct 18, 4:20 pm, MRAB 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

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 wrote: gslindstrom wrote: On Oct 18, 5:56 pm, Gary Herron 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 ch

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread rurpy
On Oct 19, 12:41 pm, Ethan Furman wrote: > gslindstrom wrote: > > On Oct 18, 5:56 pm, Gary Herron 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

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread Ethan Furman
gslindstrom wrote: On Oct 18, 5:56 pm, Gary Herron 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 f

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread rurpy
On Oct 18, 11:54 pm, alex23 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 can >>

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread gslindstrom
On Oct 18, 5:56 pm, Gary Herron 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 forwards

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

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread rurpy
On Oct 18, 9:45 pm, alex23 wrote: > On Oct 19, 12:32 pm, ru...@yahoo.com wrote: > > On Oct 18, 4:20 pm, MRAB 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 t

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 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 beha

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread rurpy
On Oct 18, 4:20 pm, MRAB 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 > > forwards). So i

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 is

Re: Checking a Number for Palindromic Behavior

2009-10-18 Thread MRAB
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 is

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 e