Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: Python  |  size: 0.10 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. dict = {}
  2. for tag in hashtags:
  3.         if (tag in dict):
  4.                 dict[tag] += 1
  5.         else:
  6.                 dict[tag] = 1
  7. return dict