Python Tutorial #15; Dictionary in Python

Описание к видео Python Tutorial #15; Dictionary in Python

Dictionaries in Python,
representing data with two columns in dictionary, representing data with more than 2 columns, Key should be unique, keys are case sensitive, Key can have different data types , Declaring a dictionary. (empty dict) , creating list with the help of nested lists , Creating a nested dictionary, adding elements to dictionary , removing an element from dictionary, looping all keys, looping all values , loop both key and values together, To check if a key exists, to make a deep copy of dictionary, the dict.copy will make a shallow copy. Lets understand why its called shallow copy , clear method removes all elements inside the dictionary, get method to get value of a key , pop method removes an item with given key , to pop an item with given key , update existing key value pairs or add new key value pairs, len functions returns the number of items in a dictionary

Комментарии

Информация по комментариям в разработке