TGViewer
Pythonist.ru - образование по питону Pythonist.ru - образование по питону @pythonist_ru · 24K subscribers
Post #1495 6.49K
Задачка для начинающих. Ответ

from collections import Counter
import re

text = """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."""

words = re.findall('\w+', text)
print(Counter(words).most_common(10))

#coding #beginner
  • 👍 4
  • ❤ 1
  • 👎 1
  • 🤯 1
More from @pythonist_ru
  1. Oct 1, 2026photo post
  2. Sep 28, 2026🔥 Вакансии по Python за неделю: 📥 Middle+ Python/Django-разработчик Ведомости Middle · R…
  3. Sep 22, 2026Задача с кодом. Сложное упорядочивание Упорядочивание слов в ступенчатом лексикографическо…
  4. Sep 22, 2026Бустани свою карьеру на бесплатном фесте Ozon ON! Думаешь, как попасть в топовую компанию…
  5. Sep 22, 2026photo post
  6. Sep 21, 2026🔔 Вакансии по Python за неделю: 📥 Backend Developer Python i-Line Part time · Middle · R…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →