What are the built-in dictionary functions?
What will be the output of the following code?
a. >>>dict = {‘Name’:’john’,’Age’:25,’Salary’:28,000}
>>>print(dict)
>>>dict.clear()
>>>print dict
b. >>>dict1 = {‘Name’:’john’,’Age’:25,’Salary’:28,000}
>>>print(dict)
>>>dict2=dict1.copy()
>>>print(dict2)
c. >>>dict = {‘Name’:’john’,’Age’:25,’Salary’:28,000}
>>>print(dict)
>>>print(“keys in dictionary:”,dict.keys())
d. >>>dict = {‘Name’:’john’,’Age’:25,’Salary’:28,000}
>>>print(dict)
>>>print(“values in dictionary:”,dict.values())
e. >>>dict = {‘Name’:’john’,’Age’:25,’Salary’:28,000}
>>>print(dict)
>>>print(“items in dictionary:”,dict.items())