Tutorial #21 || Python Dictionaries || Python Data Structures || Python Tutorials for Beginners смотреть онлайн
Tutorial #20 || Tuples in Python || Python Data Structures || Python Tutorials for Beginners video Link: https://youtu.be/kDIHPgL3PcM
Tasks:
1) Take three dictionaries and concatenate all three into one new dictionary
2) A dictionary contains students data( keys → S.No, values → list of name , age ). Now add a new student data and delete one old student data. Print result in the format of “S.No : [ name , age ] “
3) Update your contacts in contact application.
Sample Dictionary: dict1 = { ' k1 ' : 200, ' k2 ' : 300, ' k3 ' : 400 }
Dictionary Methods :
Description copy( ) Returns the copy of dictionary
Example: dict2 = dict1.copy( ) Result: dict2 = { ' k1 ' : 200, ' k2 ' : 300, ' k3 ' : 400 }
fromkeys( ) Returns specified keys and values
Example: x = (‘key1’ , ‘key2’) y = 0 newDict = dict.fromkeys(x, y) Result: newDict = [ ‘key1’ : 0, ‘key2’ = 0 ]
get( ) Gets the value using particular key.
Example: dict1.get( ‘ k1 ’ ) Result: 200
items( ) Returns the list containing tuple for each pair of key and value
Example: dict1.items( ) Result: dict_items ([('k1', 200), ('k2', 300), ('k3', 400)])
keys( ) Similar to get( ) method.
Example: dict1.keys( ) Result: dict_keys(['k1', 'k2', 'k3'])
values( ) Returns the list containing tuple for each pair of key and value
Example: dict1.items( ) Result: dict_items ([('k1', 200), ('k2', 300), ('k3', 400)])
pop( ) Removes the value using specified key
Example: dict1.pop( ‘ k1 ‘ )
popitem( ) Removes the key and value at the end of the dictionary
Example: dict1.popitem( ) Result: dict1 = { ' k1 ' : 200, ' k2 ' : 300 }
setdefault( ) If key does not exist, this method insert key. Returns the value of particular key
update( ) Updates the values of specified key
Example: dict1.update({'color' : 'green'}) Result: dict1 = {'k1': 200, 'k2': 300, 'k3': 400, 'color': 'green'}
clear( ) Removes all items in the dictionary
Example: dict1.clear( ) Result: { }
Follow Python Tutorials: https://www.youtube.com/playlist?list=PLpFY7sqf9mzpm1Eh4uSDWX5haW1CIszyL
If you want to develop games than don't be late visit this playlist almost 40 Tutorials made just learn by using below lin
Follow Unity 2D Game Development Creepy Cat Tutorials:
https://www.youtube.com/playlist?list=PLpFY7sqf9mzrSpUfKZqTic2KzpQDqKs9t
Follow me on:
► Subscribe to my Channel: https://www.youtube.com/haripriyamanne
►Instagram: https://www.instagram.com/haripriya_manne/
►Website: http://haripriyamanne.byethost10.com/portfolio
If you have any queries can mail me to
[email protected]
Music:
https://www.jiosaavn.com/song/family-day/NjIqeERRQ3s
https://wynk.in/music/song/family-day/hu_51034175
Disclaimer- All videos and content used for educational purpose
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Tutorial #21 || Python Dictionaries || Python Data Structures || Python Tutorials for Beginners» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.