I have an zipped array like this

```
a = [(1,2),(2,2),(3,2),(4,2),(5,2)]

```

I want save the first numbers as a single column in a text file like bellow 

```
1
2
3
4
5

```

this is my code but the out put include brackets or comma

```
lista=[]
for i in range(len(a)):
    listb.append(list(a[i][0:1]))

with open ('diz.dat','w') as f:
   for i in range(0,len(lista)):
     f.write(str(lista[i])+"   "+'\n')

```

the output file is like this

```
[1]
[2]
[3]
[4]
[5]

```