Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from collections import Counter
  2.  
  3. with open('advent_message.txt') as fd:
  4. data = fd.read()
  5.  
  6. data_counted = [Counter(x).most_common() for x in zip(*data.splitlines())]
  7.  
  8. print('first star: {}'.format(''.join(x[0][0] for x in data_counted)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement