Hi Welcome to python ! there a a few suggestions in ur code which is a good practice to follow. In the snippet:
> > for x in range(len(x_value)): > > x_co = float(x_value[x])-float(x_value[x+1]) > > y_co = float(y_value[x])-float(y_value[x+1]) > > z_co = float(z_value[x])-float(z_value[x+1]) > > data = math.sqrt(x_co)*(x_co)+(y_co)*(y_co)+(z_co)*(z_co) > > print data U suddenly change the indent from four spaces which u followed in previous for loop. pls maintain consistency in indent. Standard convention is to use four spaces for indent. Another problem is that u have not closed the filehandle in the program! HTH KM
-- http://mail.python.org/mailman/listinfo/python-list