<br><br>Everything works in my program except for when it prints out
the number is surrounded by brackets but I need to print the number
without the brackets. Does anyone know an easy way to do this?<br>
#!/usr/bin/env python<br>
import array<br>
fin = open('relative_x.INT32','rb')<br>
fin1=open('relative_y.INT32','rb')<br>
fin2=open('income.INT32','rb')<br>
outfile=open('test.txt','w')<br>
<br>
data=[]<br>
data1=[]<br>
data2=[]<br>
while True:<br>
try:<br>
myInts=array.array('l')<br>
myInts.fromfile(fin,1)<br>
data.append(myInts.tolist())<br>
myInts1=array.array('l')<br>
myInts1.fromfile(fin1,1)<br>
data1.append(myInts1.tolist())<br>
myInts2=array.array('l')<br>
myInts2.fromfile(fin2,1)<br>
data2.append(myInts2.tolist())<br>
data3=zip(data,data1,data2)<br>
except EOFError:<br>
break<br>
<br>
for record in data:<br>
print record[0],record[1],record[2]<br>
<br>
<br>
<br>
thanks<br>
Dawn<br>