Re: Remove unwanted characters from column

2014-01-27 Thread Denis McMahon
On Sun, 26 Jan 2014 19:49:01 -0800, matt.s.marotta wrote: > School assignment is to create a tab separated output with the original > given addresses in one column and then the addresses split into other > columns (ex, columns for city, postal code, street suffix). If you're trying to create fixe

Re: Remove unwanted characters from column

2014-01-27 Thread Chris Angelico
On Tue, Jan 28, 2014 at 2:03 AM, wrote: > On Monday, 27 January 2014 09:57:32 UTC-5, Chris Angelico wrote: >> On Tue, Jan 28, 2014 at 1:23 AM, wrote: >> >> > If the farmID < 10: >> > remove one character from the address column >> > Elif farmID > 10: >> > remove two characters from the address

Re: Remove unwanted characters from column

2014-01-27 Thread matt . s . marotta
On Monday, 27 January 2014 09:57:32 UTC-5, Chris Angelico wrote: > On Tue, Jan 28, 2014 at 1:23 AM, wrote: > > > If the farmID < 10: > > remove one character from the address column > > Elif farmID > 10: > > remove two characters from the address column > > What if farmID == 10? > > ChrisA Ok

Re: Remove unwanted characters from column

2014-01-27 Thread Chris Angelico
On Tue, Jan 28, 2014 at 1:23 AM, wrote: > If the farmID < 10: > remove one character from the address column > Elif farmID > 10: > remove two characters from the address column What if farmID == 10? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Remove unwanted characters from column

2014-01-27 Thread Mark Lawrence
On 27/01/2014 14:23, matt.s.maro...@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

Re: Remove unwanted characters from column

2014-01-27 Thread matt . s . marotta
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 > > > o

Re: Remove unwanted characters from column

2014-01-27 Thread Steven D'Aprano
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 af

Re: Remove unwanted characters from column

2014-01-27 Thread matt . s . marotta
On Monday, 27 January 2014 00:24:11 UTC-5, Dave Angel wrote: > matt.s.maro...@gmail.com Wrote in message: > > > School assignment is to create a tab separated output with the original > > given addresses in one column and then the addresses split into other > > columns (ex, columns for city, po