fork download
  1. s = 'Choose from millions of possibilities on Shaadi.com. Create your profile, search&contact; your special one.RegisterFree\xa0\xa0\xa0unsubscribing reply to this mail\xa0\n and 09times and this is limited time offer! and this is For free so you are saving cash'
  2. p_words = ['cash', 'for free', 'limited time offer']
  3.  
  4. print dict((w, s.count(w)) for w in p_words)
Success #stdin #stdout 0.03s 6356KB
stdin
Standard input is empty
stdout
{'for free': 0, 'cash': 1, 'limited time offer': 1}