View difference between Paste ID: CmxpW2a3 and jvrySQKm
SHOW: | | - or go back to the newest paste.
1-
1+
2
for c in range(len(a)):
3
    chunk = a[c:c+7]
4
    if len(chunk) == 7:
5
        if chunk[0:3].isupper() and chunk[-3:].isupper() and chunk[3].islower():
6
            b = b.join(chunk[3])
7
print(b)