On 2009-03-09, Karnama Ahmad (KTH) wrote:
>
> Dear all,
>
> I would be thankfukl if you answer to the following easy question:
>
> How can I read from a .csv file in Python and save the data in a array
> or dictionary.
I'd first try using the CSV module.
http://www.google.com/search?q=python+csv
I would be thankfukl if you answer to the following easy question:
How can I read from a .csv file in Python and save the data in a array
or dictionary.
I suspect your teacher expects you to use the "csv" module[1] in
the standard library.
-tkc
[1]
http://docs.python.org/library/csv.html
On Mon, Mar 9, 2009 at 1:56 PM, Karnama Ahmad (KTH)
wrote:
>
> Dear all,
>
> I would be thankfukl if you answer to the following easy question:
>
> How can I read from a .csv file in Python and save the data in a array
> or dictionary.
Use the `csv` module -- http://docs.python.org/library/csv.ht
Dear all,
I would be thankfukl if you answer to the following easy question:
How can I read from a .csv file in Python and save the data in a array
or dictionary.
I look forward hearing from you.
Best Regards,
Ahmad
--
http://mail.python.org/mailman/listinfo/python-list