Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What will be the output?

    d = {"john":40, "peter":45}
    d["john"]
  2. A.
    40
    B.
    45
    C.
    john"
    D.
    peter"

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Execute in the shell to verify.


Be The First To Comment