Created
March 25, 2018 22:54
-
-
Save Fhernd/ab74d8f9d2315c9059a9cb4fb8248a8b to your computer and use it in GitHub Desktop.
Contador de palabras. OrtizOL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import Counter | |
lenguajes_programacion = ['C#', 'Python', 'Java', 'PHP', 'VB.NET', 'C#', 'JavaScript', 'JavaScript', 'Python', 'PHP', 'Python', | |
'JavaScript', 'Python', 'Python', 'Java', 'Java' | |
] | |
lenguajes_programacion_contador = Counter(lenguajes_programacion) | |
top_3_lenguajes_programacion = lenguajes_programacion_contador.most_common(3) | |
print(top_3_lenguajes_programacion) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment