Q1.What defines a dictionary?
Q2.Are dictionary keys mutable?
Q3.How to access a value for key 'k'?
Q4.Difference between D['k'] and D.get('k')?
Q5.How to add a new key-value pair?
Q6.How to remove a key 'k'?
Q7.What does D.keys() return?
Q8.What does D.values() return?
Q9.What does D.items() return?
Q10.Result of len({'a': 1, 'b': 2})?
Q11.How to merge dict D2 into D1?
Q12.Can a dictionary have duplicate keys?
Q13.Can a dictionary have duplicate values?
Q15.How to create a dict from two lists?
Q17.Which method removes all items?
Q18.What is {x: x*x for x in range(3)}?
Q19.Is {1, 2} a dictionary?
Q20.Can a list be a dictionary key?
Q21.Can a tuple be a dictionary key?
Q22.What is D.setdefault(k, v)?
Q23.Result of dict.fromkeys(['a', 'b'], 0)?
Q24.Is dictionary order guaranteed?
Q25.How to sort a dict by value?
Q26.What is max(D) for {'a': 1, 'z': 2}?
Q27.What is the return type of D.keys()?
Q28.How to copy a dict deeply?
Q29.What is the complexity of key lookup?