Thank you Skip, worked great. And thank you Tim for Tidying things up!
--
http://mail.python.org/mailman/listinfo/python-list
I guess another way to accomplish this would be, is there any way that I can
turn the returned value for (column) into 1 list?
So rather than
>a
>b
>c
>d
>e
>f
I would get [a, b, c, d, e, f]
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, May 16, 2013 2:40:08 PM UTC-4, Skip Montanaro wrote:
> Perhaps you want len(reader) instead? Or a counter which increments for
> every row read which has an item in column A?
>
>
>
> Skip
len(reader) gives me an error.
I tried a counter, but unfortunately due to the simplicity
I'm using the csv module to get information from a csv file. I have items
listed in Column A. I want to know how many items are listed in Column A.
import csv
with open('test.csv', 'r') as f:
reader = csv.reader(f)
for column in reader:
column = (column[0])
print(column)
On Friday, April 26, 2013 11:05:29 AM UTC-4, Chris Angelico wrote:
> On Sat, Apr 27, 2013 at 12:26 AM, wrote:
>
> > ##This next step will seek out the word Device within firstdev.ahk, and
> > replace with devlist[0]
>
> > for line in fileinput.input(["firstdev.ahk"], inplace=True):
>
> >
On Friday, April 26, 2013 10:53:44 AM UTC-4, Peter Otten wrote:
> tunacu...@gmail.com wrote:
>
>
>
> > Hey,
>
> >
>
> > Let me explain what my program is supposed to do...
>
> >
>
> > I am using a macro program in conjunction with a python script I am
>
> > writing. The macro inputs data
Hey,
Let me explain what my program is supposed to do...
I am using a macro program in conjunction with a python script I am writing.
The macro inputs data into a database we use at my job, blah blah blah.
The script asks how many numbers (devices) you need to enter. Next, it asks you
to input