A

Admin • 833K Points
Coach

Q. What will be the result of `mydict['missing']` if 'missing' is not a key?

  • (A) None
  • (B) 0
  • (C) Raises KeyError
  • (D) False

Explanation by: Admin

Using square brackets to access a missing key raises `KeyError`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.