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?

huh?

try testing some code, and then come back and post it btwn code tags. the code is not going to work.

Do u have an email that i could show u what im trying to do? the data is very large it is too long to write on here what i am exactly trying to do ??

many thanks

send to me my email is bobepoundmax@yahoo.com please don't spam my mailbox and include comments please

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.