Q. Which statement will throw a KeyError? (A) dict.get('x') (B) dict['x'] (C) 'x' in dict (D) dict.keys() ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (B) dict['x'] Explanation: `dict['x']` throws a KeyError if 'x' is not present.