Home » Programming Language (coding) » Python MCQ » 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 

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
30 × 27 =