Help Needed...

Recommended Videos

Trivun

Stabat mater dolorosa
Dec 13, 2008
9,830
0
0
Okay, so I'm doing coursework (meant to be in online for midnight tomorrow) on Python programming. And I'm in a bit of a bother.

Quite simply, I have a tab-delimited text file which is basically four columns, we'll call A, B, C and D. The text file doesn't show them in columns, if it's open in Notepad they're all on one line, but I basically need to seperate these into four lists. Each list has to be given a seperate name, A, B, C or D.

Is anybody here up to speed on Python, and could they help please? I've explained it pretty poorly, I know, so if anyone doesn't understand let me know and I'll try to explain more clearly. I need to have four lists stored as objects in the program so I can build a search program for the user to search for particular elements of data.
 

Trivun

Stabat mater dolorosa
Dec 13, 2008
9,830
0
0
Nobody wants to help? Come on, guys, I really need some advice here...
 

gibboss28

New member
Feb 2, 2008
1,715
0
0
...deleting the first sentence because it made me look like a dick, sorry i missread something.

I'd like to help but I know nothing about Python what so ever.
 

Malifact

New member
Apr 13, 2010
206
0
0
Go to 4chan, then go to the advice thread. They'll help you out.

((Seriously, they will. You might get a few trolls going "n00b", but someone will post the answer you need))
 

dmase

New member
Mar 12, 2009
2,117
0
0
Trivun said:
Nobody wants to help? Come on, guys, I really need some advice here...
Dude you just posted that ten minutes ago, but i'll help putting it on the hot threads page.;]

The only programming i've done is in Matlab, Java, and Pep/7 and i hate it and i'm only good at matlab.
 

Icecoldcynic

New member
Oct 5, 2009
1,268
0
0
The only thing I can suggest is to download Notepad++ (it's free and a lot better than regular notepad) and switch the language to python and see if that changes the formatting at all. I used to do a little bit of XML/Lua coding for mods, and using Notepad++ made it much easier.
 

Trivun

Stabat mater dolorosa
Dec 13, 2008
9,830
0
0
Icecoldcynic said:
The only thing I can suggest is to download Notepad++ (it's free and a lot better than regular notepad) and switch the language to python and see if that changes the formatting at all. I used to do a little bit of XML/Lua coding for mods, and using Notepad++ made it much easier.
On a university computer so I can't do that. Wouldn't help anyway, since the file layout isn't the problem, it's that I don't know how to split it into the four lists of data. Thanks for trying, anyway :)