Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Created October 27, 2016 04:51
Show Gist options
  • Save lozadaOmr/a1d59521e453bdf508e66845629ed466 to your computer and use it in GitHub Desktop.
Save lozadaOmr/a1d59521e453bdf508e66845629ed466 to your computer and use it in GitHub Desktop.
activations = ['1000','1000','1000','1001','2000']
tacs = {'1000':'1000','1001':'1001'}
score = {}
for imei in activations:
if tacs.get(imei, None):
score[str(imei)] = score.get(str(imei),0) + 1
print score
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment