Been stuck on this for hours and other places don't seem to be quite helpful...
Every time I output my code to a file all the headers show up for each file read in.
How do I suppress the header to only the first index?
Here is my code:
http://dpaste.com/164R131
What output I should be getting: http://dpaste.com/23YFSG7.txt
What my crappy code is getting:
http://dpaste.com/2MMY224
>>361780
Delete line 6
>>361795
I deleted line 6 (one_header) but it still makes no difference. Header still outputs for each file
>>361816
Can you post all your code?
I'm assuming there's an outer loop that you didn't post, you need to move line 3 to be outside the loop.
>>361852
>Trying to steal my full code
Nice try fella.
>>361914
You're writing for loops in Python.
No-one wants your code.
>>361780
Why the hell are you printing the header inside of a loop? I'm assuming the code you posted is enclosed in a loop. Why? Just print it before the loop.
>>361967
Otherwise delete line 3 so it doesn't reset. You're a fucking moron, man.
post more code, including mock `data1`, `data2`, and `base`
>>362016
kys then faggot
>>362016
Did you delete line 3 and moved it to OUTSIDE the loop or not?