Python Forum
Import a Data from a text file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import a Data from a text file
#1
Hello!
I am pretty new to python and i would need some help Smile

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 ? Big Grin
Thx
Reply
#2
Moved to homework, as this looks to be an assignment
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation URGENT: How to plot data from text file. Trying to recreate plots from MATLAB JamieAl 4 3,537 Dec-03-2023, 06:56 AM
Last Post: Pedroski55
  Working with text data APK 4 2,480 Aug-22-2020, 04:48 AM
Last Post: buran
  Frequency in first digit from csv file, NO IMPORT bryan0901 6 2,825 May-28-2020, 09:50 AM
Last Post: bryan0901
  Read text file, process data and print specific output Happythankyoumoreplease 3 2,902 Feb-20-2020, 12:19 PM
Last Post: jefsummers
  Import Python file with a name of a module in Stantard Library tiago_code 7 3,113 Dec-11-2019, 06:08 AM
Last Post: ICanIBB
  Convert text from an image to a text file Evil_Patrick 5 4,268 Jul-30-2019, 07:57 PM
Last Post: DeaD_EyE
  import CSV (how can i convert my data to csv?) IvanR 2 2,331 Feb-08-2019, 03:43 AM
Last Post: ichabod801
  reading text file and writing to an output file precedded by line numbers kannan 7 10,369 Dec-11-2018, 02:19 PM
Last Post: ichabod801
  Read a data from text file (Notepad) Leonzxd 24 13,842 May-23-2018, 12:17 AM
Last Post: wavic
  Login Module Help - Comparing data in a text file to data held in a variable KeziaKar 0 2,240 Mar-08-2018, 11:41 AM
Last Post: KeziaKar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020