Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #60093

Re: Newbie - Trying to Help a Friend

From Alister <alister.ware@ntlworld.com>
Subject Re: Newbie - Trying to Help a Friend
Newsgroups comp.lang.python
References (3 earlier) <528c31e9$0$11089$c3e8da3@news.astraweb.com> <mailman.2952.1384926851.18130.python-list@python.org> <ci%iu.79106$v_6.55095@fx20.am4> <mailman.2959.1384955870.18130.python-list@python.org> <r_3ju.169172$v41.72763@fx23.am4>
Message-ID <Ed4ju.115243$qC.92401@fx07.am4> (permalink)
Organization virginmedia.com
Date 2013-11-20 15:06 +0000

Show all headers | View raw


On Wed, 20 Nov 2013 14:49:59 +0000, Alister wrote:

> On Wed, 20 Nov 2013 13:57:30 +0000, Mark Lawrence wrote:
> 
>> On 20/11/2013 09:29, Alister wrote:
>>> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote:
>>>
>>>> On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano <steve@pearwood.info>
>>>> wrote:
>>>>> 2 does count because it isn't divisible by 3. The question states,
>>>>> "[count] how many positive integers less than N are not divisible
>>>> by 2,3
>>>>> or 5". Two is not divisible by 3, so "not divisible by 2,3 or 5" is
>>>> true,
>>>>> so two gets counted.
>>>>
>>>>> The first number which is divisible by *all* of 2, 3 and 5 (i.e.
>>>> fails
>>>>> the test, and therefore doesn't get counted) is 30. The next few
>>>> that
>>>>> fail the test are 60, 90, 120, 150, 180, 210, 240, 270, 300, ...
>>>>> Remember, these are the numbers which should not be counted.
>>>>
>>>>>> I count 1, not 6
>>>>
>>>>> Out of curiosity, which number did you count?
>>>>
>>>> 1 of course. It's the only one that's not divisible by any of the
>>>> factors.
>>>>
>>>> Apparently we disagree about precedence and associativity in English.
>>>> I believe the not applies to the result of (divisible by 2, 3, or 5),
>>>> so I'd count 1, 7, 11, 13, 17, 19, 23. The first nonprime would be
>>>> 49.
>>>>
>>>> If I were trying to get the series you describe, I'd phrase it as
>>>>    "Not divisible by 2, and not divisible by 3, and not divisible by
>>>>    5"
>>>
>>> This ambiguity is a great example of why teachers (and enayone else
>>> responsible for specifying a programming project) should take greater
>>> care when specifying tasks.
>>> if it is to late to ask for clarification (the correct step in a real
>>> world case) I suggest you write 2 programs 1 for each interpretation,
>>> it will be good for your personal learning even if the teacher does
>>> not give any extra credit.
>>>
>>>
>> Ambiguity is the reason that some of the most expensive language
>> lessons in the world are at places like Sandhurst and West Point. 
>> Giving crystal clear orders, whether verbally or in writing, is
>> considered quite important in the military.
>> 
>> By the way, this is double posted and there were four identical
>> messages from you yesterday, finger trouble or what? :)
> 
> I don't think the problem is at my end. I am only sending once to the
> best of my knowledge (using Pan newsreader to Comp.lang.python)

Ok this is now silly
Apologies to everyone I am monitoring my network connection to confirm 
that i am not sending multiple times.
 



-- 
T-1's congested due to porn traffic to the news server.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Newbie - Trying to Help a Friend bradleybooth12345@gmail.com - 2013-11-19 10:40 -0800
  Re: Newbie - Trying to Help a Friend maxwell34m@gmail.com - 2013-11-19 11:05 -0800
  Re: Newbie - Trying to Help a Friend Neil Cerutti <mr.cerutti@gmail.com> - 2013-11-19 14:07 -0500
  Re: Newbie - Trying to Help a Friend Gary Herron <gary.herron@islandtraining.com> - 2013-11-19 11:06 -0800
  Re: Newbie - Trying to Help a Friend bradleybooth12345@gmail.com - 2013-11-19 11:27 -0800
    Re: Newbie - Trying to Help a Friend Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-19 20:48 +0000
      Re: Newbie - Trying to Help a Friend Duncan Booth <duncan.booth@invalid.invalid> - 2013-11-20 11:38 +0000
        Re: Newbie - Trying to Help a Friend Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-23 02:03 +0000
    Re: Newbie - Trying to Help a Friend Mark Janssen <dreamingforward@gmail.com> - 2013-11-19 14:51 -0800
  Re: Newbie - Trying to Help a Friend Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-20 00:17 +0000
    Re: Newbie - Trying to Help a Friend Dave Angel <davea@davea.name> - 2013-11-19 22:10 -0500
      Re: Newbie - Trying to Help a Friend Steven D'Aprano <steve@pearwood.info> - 2013-11-20 03:52 +0000
        Re: Newbie - Trying to Help a Friend Dave Angel <davea@davea.name> - 2013-11-20 00:54 -0500
          Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 09:29 +0000
            Re: Newbie - Trying to Help a Friend Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-20 13:57 +0000
              Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 14:51 +0000
                Re: Newbie - Trying to Help a Friend Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-11-20 18:33 -0500
                Re: Newbie - Trying to Help a Friend Anssi Saari <as@sci.fi> - 2013-11-21 15:44 +0200
              Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 14:49 +0000
                Re: Newbie - Trying to Help a Friend Chris Angelico <rosuav@gmail.com> - 2013-11-21 02:05 +1100
                Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 15:06 +0000
                Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 15:09 +0000
                Re: Newbie - Trying to Help a Friend Chris Angelico <rosuav@gmail.com> - 2013-11-21 02:14 +1100
                Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 15:35 +0000
                Multiple postings Alister <alister.ware@ntlworld.com> - 2013-11-20 15:36 +0000
                Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 15:34 +0000
                Re: Newbie - Trying to Help a Friend Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-20 16:29 +0000
                Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 16:45 +0000
                Re: Newbie - Trying to Help a Friend Ned Batchelder <ned@nedbatchelder.com> - 2013-11-20 09:12 -0800
                Re: Newbie - Trying to Help a Friend Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-20 17:37 +0000
                Re: Newbie - Trying to Help a Friend Ned Batchelder <ned@nedbatchelder.com> - 2013-11-20 09:51 -0800
                Re: Newbie - Trying to Help a Friend Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-20 18:09 +0000
                Re: Newbie - Trying to Help a Friend Ned Batchelder <ned@nedbatchelder.com> - 2013-11-20 10:18 -0800
                Re: Newbie - Trying to Help a Friend Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-20 18:35 +0000
                Re: Newbie - Trying to Help a Friend Ned Batchelder <ned@nedbatchelder.com> - 2013-11-20 11:54 -0800
                Re: Newbie - Trying to Help a Friend Chris Angelico <rosuav@gmail.com> - 2013-11-21 07:26 +1100
                Off-topic: Pop culture references [was Re: Newbie - Trying to Help a Friend] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-21 00:27 +0000
                Re: Off-topic: Pop culture references [was Re: Newbie - Trying to Help a Friend] MRAB <python@mrabarnett.plus.com> - 2013-11-21 00:48 +0000
                Re: Off-topic: Pop culture references [was Re: Newbie - Trying to Help a Friend] Tim Golden <mail@timgolden.me.uk> - 2013-11-21 09:08 +0000
                Re: Off-topic: Pop culture references [was Re: Newbie - Trying to   Help a Friend] Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-11-22 17:10 +1300
                Re: Off-topic: Pop culture references [was Re: Newbie - Trying to Help a Friend] Chris Angelico <rosuav@gmail.com> - 2013-11-21 20:46 +1100
                Re: Newbie - Trying to Help a Friend Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-11-21 12:53 +0100
                Re: Newbie - Trying to Help a Friend Chris Angelico <rosuav@gmail.com> - 2013-11-22 02:48 +1100
                Re: Newbie - Trying to Help a Friend Neil Cerutti <mr.cerutti@gmail.com> - 2013-11-21 11:29 -0500
                Re: Newbie - Trying to Help a Friend Chris Angelico <rosuav@gmail.com> - 2013-11-22 04:10 +1100
                Re: Newbie - Trying to Help a Friend bradleybooth12345@gmail.com - 2013-11-21 15:17 -0800
                Re: Newbie - Trying to Help a Friend Gary Herron <gary.herron@islandtraining.com> - 2013-11-21 15:35 -0800
                Re: Newbie - Trying to Help a Friend bradleybooth12345@gmail.com - 2013-11-21 15:55 -0800
                Re: Newbie - Trying to Help a Friend Terry Reedy <tjreedy@udel.edu> - 2013-11-21 19:55 -0500
                Re: Newbie - Trying to Help a Friend Gary Herron <gary.herron@islandtraining.com> - 2013-11-21 20:17 -0800
                Re: Newbie - Trying to Help a Friend Terry Reedy <tjreedy@udel.edu> - 2013-11-21 19:17 -0500
                Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 15:34 +0000
                Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 15:06 +0000
                Re: Newbie - Trying to Help a Friend Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-20 15:24 +0000
              Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 14:50 +0000
              Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 14:50 +0000
          Re: Newbie - Trying to Help a Friend Alister <alister.ware@ntlworld.com> - 2013-11-20 09:29 +0000

csiph-web