Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #!/usr/bin/python
  2. inputvalues = {}
  3. for i in range(0,100):
  4.     value = input()
  5.     if 0 > value > 1000 : break
  6.     else:
  7.         if not value in inputvalues: inputvalues[value] = 1
  8.         else: inputvalues[value] += 1
  9. print max(inputvalues, key=inputvalues.get) + stats[max(stats, key=stats.get)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement