Home | | Problem Solving and Python Programming | Dictionaries - Python

Chapter: Problem Solving and Python Programming : Lists, Tuples, Dictionaries

Dictionaries - Python

Dictionary is an unordered collection of elements. An element in dictionary has a key: value pair.

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)

 

Operations on dictionary:

1.              Accessing an element

2.              Update

3.              Add element

4.              Membership



 

Methods in dictionary:


 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Problem Solving and Python Programming : Lists, Tuples, Dictionaries : Dictionaries - Python |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.