Computers & Electronics
Dictionaries & Encyclopedias
General Reference
Language Resources
Reference
Dictionaries in Python
33K views
·
Apr 24, 2023
Visit Channel:infallibletechie.com
Dictionaries in Python are used for data collection.
They are similar to map data type in other programming languages where we use key and value pairs.
dict():
dict() is used to define the Dictionaries in Python.
Example:
colorsValues = dict();
colorsValues[ 1 ] = 'Red';
colorsValues[ 2 ] = 'Green';
colorsValues[ 3 ] = 'blue';
print(
colorsValues[ 2 ]
);
Blog Post:
https://www.infallibletechie.com/2023/04/dictionaries-in-python.html
Show More
Show LessComments
loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text