RUVIDEO
Поделитесь видео 🙏

#21 Dictionaries In Python

Dictionaries In Python:
=======================
Python dictionary is an unordered collection of items. Each item in the dictionary has a key/value pair.
Creation of a dictionary:
You can create a dictionry by placing items inside the curly braces {} separated by commas.
Each item has a key instead of a numbered index.
The values can by any data types and can be repeated, but the keys must be immutable type(string,number or tuple), and must be unique.
my_dict = {}
Python Dictionary Comperhension: is an elegant and concise method for transforming one iterable object into a dictionary.
dict_variable = {key:value for (key,value) in dictonary.items()}
Accessing the elements of a dictionary:
While indexing is used with other data types to access values, a dictionary uses keys.
keys should be placing inside square brackets [], or the get() method
Changing and Adding Dictionary elements:
Dictionaries are imutable, and by definition, we can add or change the value of existing
items using the assignment operator '='.
If the key is already present, the existing value gets updated, in case the key isn't present, a new (key:value) pair is added to the d
Removing elements from Dictionary:
- pop(key) method: to remove an item with the provided key and returns the value.
- popitem() method to remove the last item in the dictionary.
- clear() method to remove all the elements inside the dictionary.
- del keyword to remove individual items or the intire dictionary itself.
Dictionary mehtods:
- help()
Built-in Functions To Work with Dictionaries:
- sorted()
- all()
- any()

Dictionary Operations:
- Membership Test
- Iterating Through a Dictionary
Content:
00:00 intro.
01:23 creation.
06:59 accessing the elements.
08:55 changing & adding.
10:03 removing items.
11:41 dict mehtods.
13:52 operations.

#python #programming
#بايثون
=============================.
Follow me on social media:
LinkedIn: https://www.linkedin.com/in/omer-maki-2a1b36173/
Twitter: https://twitter.com/OmerMaki358
Facebook: https://web.facebook.com/omermaki358/

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «#21 Dictionaries In Python», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.