Advertisement
fsimen

python challenge 3

Apr 28th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1.  
  2. b = ""
  3. for c in range(len(a)):
  4.     chunk = a[c:c+7]
  5.     if len(chunk) == 7:
  6.         if chunk[0:3].isupper() and chunk[-3:].isupper() and chunk[3].islower():
  7.             b = b.join(chunk[3])
  8. print(b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement