### My issue

for i in range(int(input())):

n=int(input())

a=list(map(int,input().split()))

for i in range(1,len(a)):

if a[i-1]==a[i]:

a.pop(a[i-1])

print(len(a))

whats wrong with this it is giving runtime error

### My code

```
# cook your dish here
for i in range(int(input())):
n=int(input())
a=list(map(int,input().split()))
for i in range(1,len(a)):
if a[i-1]==a[i]:
a.pop(a[i-1])
print(len(a))
```

Problem Link: COMPRESSVD Problem - CodeChef