Remove unwanted characters from column
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Mon Jan 27 08:54:20 EST 2014
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
More information about the Python-list
mailing list