filmov
tv
15 | Python Beginners Tutorial | Dictionary in Python-(Part-2)

Показать описание
A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets, and they have keys and values.We See Following in this tutorial...
Following are the methods available in Dictionaries.
1) copy( )
2) clear( )
3) items( )
4) keys( )
5) values( )
6) update({key1:val1,key2:val2,......})
7) pop(key,value)
8) popitem()
9) get(key)
10) fromkeys(key,value)
11) setdefault(keys,value)
Following are the methods available in Dictionaries.
1) copy( )
2) clear( )
3) items( )
4) keys( )
5) values( )
6) update({key1:val1,key2:val2,......})
7) pop(key,value)
8) popitem()
9) get(key)
10) fromkeys(key,value)
11) setdefault(keys,value)