Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b = ""
- for c in range(len(a)):
- chunk = a[c:c+7]
- if len(chunk) == 7:
- if chunk[0:3].isupper() and chunk[-3:].isupper() and chunk[3].islower():
- b = b.join(chunk[3])
- print(b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement