Examveda

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

A. "john", 40, 45, and "peter"

B. "john" and "peter"

C. 40 and 45

D. d = (40:"john", 45:"peter")

Answer: Option B


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python