Idiomatic Python: Counting Things with Dictionaries

Опубликовано: 15 Июнь 2026
на канале: MathByte Academy
1,690
74

In this video we continue looking at dictionaries in the context of writing more Pythonic code. In particular we look at several different ways of counting elements of an iterable, including using the Counter object available in the collections module.

#mathbyteacademy #python

Code for this Video
===================
Available in GitHub blog repo: https://github.com/fbaptiste/python-blog
Direct link: https://tinyurl.com/5fywdjt4

My Python Courses
=================

Python 3 Fundamentals (introduction to Python)
https://www.udemy.com/course/python3-...

Python 3 Deep Dive (Part 1 - Functional)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 2 - Iteration, Generators)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 3 - Hash Maps)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 4 - OOP)
https://www.udemy.com/course/python-3...