RE: I don't know list, I not good at list.

2011-07-14 Thread Ellerbee, Edward
Thank you all for the advice, let me spin this in a different way. I've built a program that goes to the NANPA website, scrapes area code/exchange (npa/nxx) digits for a specified area - be it carolina, alabama, texas, etc - drops it into a file, then massages the data and prints out the correct

RE: Suppressing newline writing to file after variable

2011-07-14 Thread Ellerbee, Edward
AM, Ellerbee, Edward eeller...@bbandt.com wrote: Hey Chris, I was reading over this again, trying to understand the logic (I'm a n00b) Could you explain this a bit? I'd like to build this emit function, but I still don't have a firm grasp on functions. All of my code is line by line. I'll

Please critique my script

2011-07-14 Thread Ellerbee, Edward
I've been working on this for 3 weeks as a project while I'm learning python. It's ugly, only function in there is from a fellow lister, but it works perfectly and does what it is intended to do. I'd love to hear comments on how I could improve this code, what would be good to turn into a

I don't know list, I not good at list.

2011-07-13 Thread Ellerbee, Edward
I've been beating my head against the desk trying to figure out a method to accomplish this: Take a list (this example is 5 items, It could be 150 or more - i.e. it's variable length depending on the city/local calling zones) The first 6 digits of phone numbers(NPA/NXX) in a local calling area. I

Suppressing newline writing to file after variable

2011-06-28 Thread Ellerbee, Edward
Hi all, newbie question here. I'm using python 2.7. I've built my first program to pull some info off the web, process it, and build dialpeers for a cisco router. I have 2 problems - the first is the formatting of printing the gathered information to a file. It seems to be inserting a new line

RE: Suppressing newline writing to file after variable

2011-06-28 Thread Ellerbee, Edward
] Sent: Tuesday, June 28, 2011 12:18 PM To: Ellerbee, Edward Cc: python-list@python.org Subject: Re: Suppressing newline writing to file after variable On Tue, Jun 28, 2011 at 5:05 PM, Ellerbee, Edward eeller...@bbandt.com wrote: Hi all, newbie question here. I'm using python 2.7. I've built my