Hello everyone,
I am getting started with python programming and I am facing some problems regarding data manipulation.
Please consider the following data:
The numbers are available in an 8-digit system, it means that the first number should be between the column 1 to 8, while the second one should be between the column 9 and 16, and so on.
I would like to create a script that reads this information stored in a file "file.txt" available in a given directory and evaluate the sum of the three components, saving the file "file2.txt". Thank you for your help.
I am getting started with python programming and I am facing some problems regarding data manipulation.
Please consider the following data:
Code:
2.9 -4.0 50.0
3.4 -5.0 150.0
2.9 -1.0 350.0
2.4 -4.0 50.0
2.0 -2.0 110.0
The numbers are available in an 8-digit system, it means that the first number should be between the column 1 to 8, while the second one should be between the column 9 and 16, and so on.
I would like to create a script that reads this information stored in a file "file.txt" available in a given directory and evaluate the sum of the three components, saving the file "file2.txt". Thank you for your help.