blob: cb0a56c7cd822c432de21329c840a0a0a1bc5310 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/python3
t = int(input())
for i in range(t):
s = input()
count = 0
for j in range(len(s) - 1):
# print(s[j] == s[j + 1])
if s[j] == s[j + 1]:
count += 1
print(count)
|