I recently told you to use "in" on a dict, and not on dict.keys(). And I was right... but I was also wrong. In this video, I attempt to clarify things, and to show where my benchmarks led me (and maybe you!) astray. Along the way, we look at the differences between dicts and dict views.
Jupyter notebooks for this and all of my videos are at https://github.com/reuven/youTube-not... .
Watch video Searching in Python dicts (part 2) online without registration, duration hours minute second in high quality. This video was added by user Python and Pandas with Reuven Lerner 20 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 461 once and liked it 33 people.