Examveda

What will be the output of the following Python code?
>>> a={}
>>> a.fromkeys([1,2,3],"check")

A. Syntax error

B. {1:"check",2:"check",3:"check"}

C. "check"

D. {1:None,2:None,3:None}

Answer: Option B


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python