Загрузка...

Why set items can't be indexed? The real reason | 2MinutesPy

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: https://youtu.be/mWaMSGwiSB0

▶️ __call__ in Python? https://youtu.be/nXLhpuKI4Mw

▶️ __new__ VS __init__ in Python: https://youtu.be/ruOzNI9Q-Ho

▶️How to use match-case in Python?: https://youtu.be/FEaT1AYJAm0

▶️ Python's __init__ Method: https://youtu.be/mYKGYr0xaXw

Subscribe to https://www.youtube.com/channel/UCbcD3tpv7kIQU2cp5F9KJNA for more such videos.

@2MinutesPy

#set #sets #hashing #hashtable #python #pythonprogramming #builtins #script #code #2minutespy

Видео Why set items can't be indexed? The real reason | 2MinutesPy канала 2MinutesPy
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять