Re: file I/O and arithmetic calculation

Discussion in 'Python' started by Mark Lawrence, May 22, 2013.

  1. 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
    Mark Lawrence, May 22, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keira Wilson

    file I/O and arithmetic calculation

    Keira Wilson, May 22, 2013, in forum: Python
    Replies:
    2
    Views:
    119
    Carlos Nepomuceno
    May 23, 2013
  2. Carlos Nepomuceno

    RE: file I/O and arithmetic calculation

    Carlos Nepomuceno, May 22, 2013, in forum: Python
    Replies:
    0
    Views:
    105
    Carlos Nepomuceno
    May 22, 2013
  3. Oscar Benjamin

    Re: file I/O and arithmetic calculation

    Oscar Benjamin, May 23, 2013, in forum: Python
    Replies:
    0
    Views:
    117
    Oscar Benjamin
    May 23, 2013
  4. Carlos Nepomuceno

    RE: file I/O and arithmetic calculation

    Carlos Nepomuceno, May 23, 2013, in forum: Python
    Replies:
    0
    Views:
    116
    Carlos Nepomuceno
    May 23, 2013
  5. Carlos Nepomuceno

    RE: file I/O and arithmetic calculation

    Carlos Nepomuceno, May 23, 2013, in forum: Python
    Replies:
    0
    Views:
    97
    Carlos Nepomuceno
    May 23, 2013
Loading...

Share This Page