Re: [Tutor] Reading in data files

2011-03-14 Thread Steven D'Aprano
Marc Tompkins wrote: On Mon, Mar 14, 2011 at 1:02 PM, Marc Tompkins wrote: On Mon, Mar 14, 2011 at 12:59 PM, paige crawford < plcrawf...@crimson.ua.edu> wrote: How do I split them by spaces? Google "Python split". That might have been a bit abrupt... but (in general) the Tutor list is happ

Re: [Tutor] Reading in data files

2011-03-14 Thread Marc Tompkins
On Mon, Mar 14, 2011 at 1:02 PM, Marc Tompkins wrote: > On Mon, Mar 14, 2011 at 12:59 PM, paige crawford < > plcrawf...@crimson.ua.edu> wrote: > >> How do I split them by spaces? >> >> Google "Python split". > > That might have been a bit abrupt... but (in general) the Tutor list is happy to help

Re: [Tutor] Reading in data files

2011-03-14 Thread Marc Tompkins
On Mon, Mar 14, 2011 at 12:08 PM, paige crawford wrote: > Hey, > > > How do I read in a data file that has comments then remove the comments to > get to the numbers? The numbers in the data file needs to be read into a > list. There are also comments next to the numbers. The file looks something >