Home » Programming Language (coding) » Python MCQs » What will be the output of the following Python code snippet? d = {“john”:40, “peter”:45} “john” in d

What will be the output of the following Python code snippet? d = {“john”:40, “peter”:45} “john” in d

What will be the output of the following Python code snippet?

d = {"john":40, "peter":45}
"john" in d

A. True
B. False
C. None
D. Error

Correct Answer: Option A. True 

Take Part in Discussion:

Your email address will not be published.

Solve : *
6 × 30 =