Python 3 MCQ (SET-3) – Multiple Choice Questions and Answers
What will be the output after the following statements? x = {0:4, 1:8, 2:16, 3:32} print(list(x.values())[2]) a. [4, 8] b. [4, 8, 16] c. 16 d. 8 What will be the output after the following statements? x = {0:4, 1:8, 2:16, 3:32} print(x.items()) a. dict_items(4, 8, 16, 32) b. dict_items([4, 8, 16, 32]) c. dict_items[0, … Read more