Pergunta de entrevista da empresa Yelp

Coding over the phone as listed in the description

Resposta da entrevista

Sigiloso

13 de abr. de 2016

from collections import Counter data = """ Nick1 : Howdy Nick2 : Some message Nick3 : Something else Nick1 : I am good """ data = [i.split(":")[0] for i in data.split("\n") if i!= ""] print Counter(data)