file data to list

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Aug 28 21:24:37 CEST 2008


On Thu, 28 Aug 2008 12:11:39 -0700, Anish Chapagain wrote:

> I am facing problem for extracting file data to the list so as to have
> graph plotted through list.
> my file(eg: data.txt) is having data like this,
> 
> cnt0001a 29000 xretya 01
> cnt0002a 29850 brishal 02
> cnt0003a 31250 kristal 03
> 
> from here, I need to copy data 29000, 29850, 31250 into a single list
> and 01, 02, 03 to another so as to plot graph using these value.

Then work through the tutorial in the documentation, pay attention to 
strings, lists, files, and their methods.  The try to implement it and 
come back with some source code and specific questions.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list