[BangPypers] Excel and Python

B.Nanda Kishore madhav.bnk at gmail.com
Wed Sep 2 12:35:43 CEST 2009


You have a module called csv which I think can be used to accomplish what
you want. It accepts a csv file, which is identical to .xls file. Try that.

#code snippet:
import csv
csvreader = csv.reader(open(csv_file), delimiter = ',')
for row in csvreader:
     print 'row:%s' % row


Regards,
Nandakishore


On Wed, Sep 2, 2009 at 3:43 PM, Vamsi <vg at apple.com> wrote:

> Hi,
>
> I need a help in Python. I want to pass the inputs from Excel through
> variables Which is declared in python script.
>
> Example:  I given parameter and Value in Excel as :
>
> Parameter                    Value
> Test                                  5
> Test1                               6
>
> I used same parameters in Python scripting
>
> Test + Test1
>
> Result should be : 11
>
> I am using Raft tool and Python scripting.
>
> Hope a good response for this.
>
> Thanks
> Vamsi
>
>
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090902/ffc81cf4/attachment.htm>


More information about the BangPypers mailing list