Paste Search Dynamic
Recent pastes
freq of
  1. l=list(map(int,input().split()))
  2. d=dict()
  3. for i in l:
  4.         if i in d:
  5.                 d[i]+=1
  6.         else:
  7.                 d[i]=1
  8. for i in d:
  9.         print("freq of "+str(i)+" : "+str(d[i]))
Parsed in 0.004 seconds