Dictionaries:
v Dictionary is an unordered collection of
elements. An element in dictionary has a key: value pair.
v All elements in dictionary are placed inside
the curly braces i.e. { }
v Elements in Dictionaries are accessed via keys and not by their
position.
v The values of a dictionary can be any data type.
v Keys must be immutable data type (numbers,
strings, tuple)
1.
Accessing an
element
2.
Update
3.
Add element
4.
Membership
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.