Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45742
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: file I/O and arithmetic calculation |
| Date | 2013-05-22 17:23 +0100 |
| References | <CAK9meDsND9501=2ydmCAFi4s6+fw+rTrDGJA2qpEyXKoae6Axw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1971.1369239821.3114.python-list@python.org> (permalink) |
On 22/05/2013 17:13, Keira Wilson wrote: > Dear all, > > I would appreciate if someone could write a simple python code for the > purpose below: > > I have five text files each of 10 columns by 10 rows as follows: > > > |file_one= 'C:/test/1.txt' > file_two= 'C:/test/2.txt' > . . . > file_five= 'C:/test/5.txt'| > > I want to calculate the mean of first row (10 elements) for each file (5 > files), if mean of first column (10 elements) of each file (5 files) is 50. > > Thank you in advance. > > Keira > Sorry but we don't do homework. -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: file I/O and arithmetic calculation Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-22 17:23 +0100
csiph-web