Answers for "dictionary in pythion"

4

dictionary in python

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
Posted by: Guest on November-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language