Ch.9: Mappings & Sets | Intro to Python & Programming | Coding for Managers Series

Опубликовано: 17 Март 2026
на канале: Alexander Hess - Pythonista
243
3

UPDATE: The chapter number was changed from 8 to 9 in the book

This is a presentation of Chapter 9 of the "Introduction to Python & Programming" book that accompanies the coding course in the Bachelor program at WHU - Otto Beisheim School of Management in Germany in the spring semester 2020.

In this video, I talk about:
How some data types are collections without a predictable order
How the dictionary (i.e., dict) data type can be used to model mappings from keys to values (e.g., comparable to a mathematical function y = f(x))
Why the hash table implementation behind dictionaries implies that there is no predictable order for the the objects contained in the dict
How hash tables make key lookup super fast
How indexing generalizes beyond integer indices
What dictionary methods exist to make data wrangling easy
How packing and unpacking with the ** operator allows writing functions that may be called in many flexible ways
Why dictionaries enable the concept of memoization that makes some recursive algorithms efficient
How the set data type is like a dict without values
How the set data type resembles sets in the mathematical sense

PYTHON BOOK
The lecture is based on the free book "Introduction to Python & Programming".
Get it on GitHub: https://github.com/webartifex/intro-t...

PYTHON LECTURES
Find all the video recordings of the book in this playlist:    • Intro to Python & Programming (Spring 2020...  

SUBSCRIBE
If you like the way I teach and talk about programming and data science, subscribe to this channel.
The videos focus on coding courses and tutorials aimed at managers and students of business administration, enabling them to make better decisions with analyses done in code.

INSTRUCTOR
Alexander Hess, PhD Student
WHU - Otto Beisheim School of Management, Vallendar, Germany

CONTACT
GitHub: https://github.com/webartifex
LinkedIn:   / webartifex  
XING: https://xing.to/webartifex
Facebook:   / webartifex  
Instagram:   / webartifex  
Website: http://www.webartifex.biz
YouTube:    / webartifex  

wa-vid-017