Taigar2000

24

Dec 25th, 2020
892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. f = open('ice-cream.csv')
  2. d = {}
  3. mt = None
  4. for i in f:
  5.     for j in i.split(';'):
  6.         d[j.strip()] = d.get(j.strip(),0)+1
  7.         if(d.get(mt,-1)<d[j.strip()]):
  8.             mt = j.strip()
  9. print(mt)
Advertisement
Add Comment
Please, Sign In to add comment