How to sum the data from multiple columns ?


I begin by saying that I don’t know anything about programming.

Here is my problem :

I have 77 data files (numbers) with three columns each. The first column is the same in all files. I would like to create a new two-column file with the following requirements:

  • The first column should be the same as that of my 77 input files;

  • The second column should be the result of the sum of the data of the second column of all my 77 input files.

Can you help me to do it by using Python ?

Thank you.

This is an extremely broad question and unless you want to install python and start with the basics of “hello world” and work your way up, I would suggest you use Excel to do what you are attempting.

Python tutorials -