dxnge

22

Sep 28th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. with open('24-s1.txt') as f:
  2.     a = f.read().split()
  3.     b = filter(lambda x: x.count('S') == x.count('X'), a)
  4.  
  5.  
  6. print(len(list(b)))
  7. #48
Advertisement
Add Comment
Please, Sign In to add comment