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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to