hello i have some data which i read in and wish to carry out some functions with it and format it into a new output file. however on my input data i need to do different things dependind were my data is
for example
def some_function(list):
does something
does something
x=does something
print x
def input(filneame):
test = open("filename", "r")
lines=lines.split()
for x in range( 1,somerange,4):
list=[x:x+4]
somefunction (list)
for i in range (another range):
while b< lines:
b=i:i+7
now i would like to write an output file to look as follow
my x value my b value
my x value my b value
my x value my b value
i wish this to continue unilt i have reached the end of my data.
also if i add a new function can i append a 3rd/4th.... column?