My code is like this .
inputfile=np.genfromtxt('test1.dat')
for data in inputfile:
lat=floor(data)+(floor(abs((data-floor(data))*100))/60)+....
print lat
In command window I can see
12.9579738889
12.9579736111
12.9579727778
12.9579719444
12.9579711111
12.9579702778
12.9579694444
.......
But I want to save it in a text file in my working directory . I am not getting how to proceed. All attempts failed. Please give suggestions. Thanks in advance.