Dictionary in Python MCQs Exercise II


Ques 1 Dictionary


What is the output of the following Python Code?


di={1:1,2:4,4:16}
di[5]=15

  a) No any Insertion will Performed.
  b) It will create one another element in dictionary.
  c) It will throw an Error.
  d) None of these


c is the correct option