Dictionary In Python

Source URL: N/A

Language: python

Created on: 2020-11-04 08:05:51

d = {'key1':'value1','key2':'value2'}
print(d) # to print full dictionary
l=d.keys
print(l)   # to print keys
b=d.values
print(b)#to print values in dictionary
Dictionary In Python
content_copy