0

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?

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by baki100
0

huh?

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.