16What is the output of the following code?d = {i: i * i for i in range(4)} print(d[3])A3B9C6DErrorView AnswerDiscussWorkspaceReportSaveEasy
17What is the output of the following code?d = {'b': 1, 'a': 2} print(list(d))A['b', 'a']B['a', 'b']CErrorD[1, 2]View AnswerDiscussWorkspaceReportSaveEasy
18What is the output of the following code?d = {'a': 1, 'b': 2} print(d.pop('a'), d)A1 {'b': 2}Ba {'b': 2}C1 {'a': 1, 'b': 2}DNone {'b': 2}View AnswerDiscussWorkspaceReportSaveEasy
19What is the output of the following code?d = {'a': 1, 'b': 2} d['c'] = 3 print(len(d), d['b'])A2 2BErrorC3 3D3 2View AnswerDiscussWorkspaceReportSaveEasy
20What is the output of the following code?from collections import Counter print(Counter('hello').most_common(1))A{'l': 2}BErrorC[('l', 2)]D[('h', 1)]View AnswerDiscussWorkspaceReportSaveEasy