Apr-01-2018, 07:25 PM
Hello!
I am pretty new to python and i would need some help
So i got a text file in this form
Example.txt
+++++++++++++++++++++++++++
X Y Z YY XX
e f g h i j
2 1 5 4 6 4
9 2 1 3 1 3
X Y Z YY XX
e f g h i j
3 8 0 5 7 2
9 1 2 3 4 1
++++++++++++++++++++++++++++++
i need to add up all numbers in the "j" column
the text file has hundreds of tables inside.
Does someone know how i can make this happen ?
Thx
I am pretty new to python and i would need some help

So i got a text file in this form
Example.txt
+++++++++++++++++++++++++++
X Y Z YY XX
e f g h i j
2 1 5 4 6 4
9 2 1 3 1 3
X Y Z YY XX
e f g h i j
3 8 0 5 7 2
9 1 2 3 4 1
++++++++++++++++++++++++++++++
i need to add up all numbers in the "j" column
the text file has hundreds of tables inside.
Does someone know how i can make this happen ?

Thx