file I/O and arithmetic calculation

Mark Lawrence breamoreboy at yahoo.co.uk
Wed May 22 12:23:43 EDT 2013


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




More information about the Python-list mailing list