In this video, we will discuss why set elements can't be indexed in Python.
You might have used it in your projects. So, you might already know their properties, such as unordered, mutable, and not allowing duplicate values.
But... have you ever thought about why sets don’t support indexing and why duplicate values are not stored?
This video will explain the real reason with code and visualization, so stay till the end, and if you feel it was worthwhile, like the video and subscribe to the channel for more videos in the future.
Chapters:
⏩ 0:00 Intro
⏩ 0:20 Why can't we index set items
⏩ 0:50 Code explanation
✨More on 2MinutesPy👇👇
▶️ Why __init__.py File is Used in Python Projects: • Why __init__.py File is Used in Pytho...
▶️ _call_ in Python? • __call__ in Python
▶️ _new_ VS _init_ in Python: • __new__ VS __init__ in Python
▶️How to use match-case in Python?: • How to Use Match-Case Statement in Py...
▶️ Python's _init_ Method: • Python's __init__ Method | 2MinutesPy
Subscribe to / @2minutespy for more such videos.
@2MinutesPy
#set #sets #hashing #hashtable #python #pythonprogramming #builtins #script #code #2minutespy