Advertisement
fsimen

Untitled

Apr 29th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. b = ""
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement