Обложка канала

Pythonist.ru - образование по питону

Pythonist.ru - помощь в подготовке к собеседованию на позицию Python Developer.

Pythonist.ru - образование по питону

3 года назад
Открыть в
Задачка для начинающих Напишите программу для нахождения 10 наиболее часто встречающихся слов в тексте. Выведите сами слова и их количество. Вывод:
[('Python', 6), ('the', 6), ('and', 5), ('We', 2), ('with', 2), ('The', 1), ('Software', 1), ('Foundation', 1), ('PSF', 1), ('is', 1)]

Текст: The Python Software Foundation (PSF) is a 501(c)(3) non-profit corporation that holds the intellectual property rights behind the Python programming language. We manage the open source licensing for Python version 2.1 and later and own and protect the trademarks associated with Python. We also run the North American PyCon conference annually, support other Python conferences around the world, and fund Python related development with our grants program and by funding special projects. Пишите ответы в комментариях, а мы свой вариант опубликуем завтра. #coding #beginner