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

#6 Python Data Types: Dicts || Dictionaries In Telugu ||Python Beginner Tutorial|| Learn Python

📁 Обучение 👁️ 16 📅 02.12.2023

#PythonDicts #Dictionaries #PythonInTelugu

#5 Python Data Types: Dicts || Dictionaries In Telugu ||Python Beginner Tutorial|| Learn Python

Dictionary

Dictionaries are used to store data values in key:value pairs.

Dictionaries are written with curly brackets

Dictionary items are ordered, changeable, and does not allow duplicates.

Dictionary items are presented in key:value pairs, and can be referred to by using the key name.

Unlike Tuples & Sets, Dictionaries are changeable, meaning that we can change, add or remove items after the dictionary has been created.

Duplicates Not Allowed- Dictionaries cannot have two items with the same key

To determine how many items a dictionary has, use the len() function

You can access the items of a dictionary by referring to its key name, inside square brackets

You can change the value of a specific item by referring to its key name
E.g. car["model"] = "swift"

Adding an item to the dictionary is done by using a new index key and assigning a value to it
E.g. car["year"] = 2021

Loops
You can loop through a dictionary by using a for loop
for x in car:
print(x)
The above loop returns only the KEYS in the dict.

For accessing the values, use:
for x in car.values():
print(x)

Alternately, if you want both key, value pairs use "items()" method

for x,y, in car.items():
print(x,y)

Nested Dictionaries - A dictionary can contain sun dictionaries. We can access them by indexing with keys.

For E.g. Imagine cars dict has further sub dicts of cars1, cars2, cars3..etc.
which has brand, model & colour as key, value pairs

car["cars1"]["brand"] lets us access the value in cars1, brand key. Same can be looped as well.

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

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

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

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