How To Confuse a Python Set 🤨 #Shorts

preview_player
Показать описание
In this #Shorts video, I show you how to create a class that confuses sets in #Python. I can't think of any practical use for this in real code, but it's a fun experiment to test your knowledge of how Python sets work.

👨🏼‍🎓 WANT HELP LEARNING PYTHON?

ABOUT ME
=========
Hi! I'm David Amos, a Python educator and author of Python Basics: A Practical Introduction to Python 3. I've worked as a professional programmer for over 8 years and have spent the last 3 years helping thousands of people learn Python and become better Python programmers. I'm also an avid Julia programmer and co-host of the @Talk Julia podcast.

#Python #PythonSets #PythonTricks #PythonProgramming #LearnPython
Рекомендации по теме
Комментарии
Автор

Neat. Though, I don't think you even need to define __eq__. And you should also get the same results if you use c as a key in a dict.

grubbzor
welcome to shbcf.ru