Unwanted Spaces and Iterative Loop

Jason Friedman jsf80238 at gmail.com
Sun Jan 26 18:44:16 EST 2014


>
>
> outHandler.write("FarmID\tAddress\tStreetNum\tStreetName\tSufType\tDir\tCity\tProvince\tPostalCode")
>
> ...


> FarmID  Address
> 1       1067 Niagara Stone Rd, Niagara-On-The-Lake, ON L0S 1J0
> 2       4260 Mountainview Rd, Lincoln, ON L0R 1B2
> 3       25 Hunter Rd, Grimsby, ON L3M 4A3
> 4       1091 Hutchinson Rd, Haldimand, ON N0A 1K0
>
>
You are wanting to produce tab-separated output, with an "Address" field
plus the Address split into fields for Street Number, Street Name, Suffix
Type, Direction?

The four lines you have pasted are examples of your input?  If yes,
"Direction" is a single letter?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140126/80952cf1/attachment.html>


More information about the Python-list mailing list