fr0stn1k

lol

Mar 11th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. i = []
  2. a = 1
  3. maxCount = 0
  4.  
  5. while (a != 0):
  6.     a = int(input())
  7.     i.append(a)
  8.  
  9. for item in i:
  10.     countNow = i.count(i[item])
  11.     if countNow > maxCount:
  12.        countNow, MaxCount = maxCount, countNow
  13.  
  14. print(maxCount)
Advertisement
Add Comment
Please, Sign In to add comment