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


Groups > comp.lang.python > #64865

Re: Remove unwanted characters from column

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Remove unwanted characters from column
Date 2014-01-27 14:34 +0000
References <8d703876-ba90-492d-a558-a5a9bb8023c7@googlegroups.com> <mailman.6019.1390800112.18130.python-list@python.org> <04d509f9-54fa-4ba5-bb6e-24ce60e12523@googlegroups.com> <52e6650c$0$29999$c3e8da3$5496439d@news.astraweb.com> <9b121fe6-9ed8-4adf-af24-80166f348c7d@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.6042.1390833253.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 27/01/2014 14:23, matt.s.marotta@gmail.com wrote:
> On Monday, 27 January 2014 08:54:20 UTC-5, Steven D'Aprano  wrote:
>> On Mon, 27 Jan 2014 05:32:08 -0800, matt.s.marotta wrote:
>>
>>
>>
>>> The code that I used is the proper way that we were supposed to complete
>>
>>> the assignment.  All I need now is an 'if...then' statement to get rid
>>
>>> of the unwanted FarmID at the end of the addresses.  I just don't know
>>
>>> what will come after the 'if' part.
>>
>>
>>
>> Show us what you do know. If you don't know the "if", what about the
>>
>> "then"?
>>
>>
>>
>>
>>
>> if .... :
>>
>>      do what?
>>
>>
>>
>>
>>
>> What do you intend to do inside the if? Under what circumstances would
>>
>> you do it?
>>
>>
>>
>> If you can answer those questions in English, then we can help you write
>>
>> code to do it.
>>
>>
>>
>>
>>
>> --
>>
>> Steven
>
> If the farmID < 10:
> remove one character from the address column
> Elif farmID > 10:
> remove two characters from the address column
>

Would you please read and action this 
https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the 
double line spacing above, thanks.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

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


Thread

Remove unwanted characters from column matt.s.marotta@gmail.com - 2014-01-26 19:49 -0800
  Re:Remove unwanted characters from column Dave Angel <davea@davea.name> - 2014-01-27 00:24 -0500
    Re: Remove unwanted characters from column matt.s.marotta@gmail.com - 2014-01-27 05:32 -0800
      Re: Remove unwanted characters from column Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-27 13:54 +0000
        Re: Remove unwanted characters from column matt.s.marotta@gmail.com - 2014-01-27 06:23 -0800
          Re: Remove unwanted characters from column Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-27 14:34 +0000
          Re: Remove unwanted characters from column Chris Angelico <rosuav@gmail.com> - 2014-01-28 01:57 +1100
            Re: Remove unwanted characters from column matt.s.marotta@gmail.com - 2014-01-27 07:03 -0800
              Re: Remove unwanted characters from column Chris Angelico <rosuav@gmail.com> - 2014-01-28 02:19 +1100
  Re: Remove unwanted characters from column Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-27 15:22 +0000

csiph-web