Python-Quizzes | Python Dictionary Quiz | Question 7

Last Updated :
Discuss
Comments

Find the output of the following program:

Python
a ={} 
a.fromkeys(['a', 'b', 'c', 'd'], 98) 
print (a) 

Syntax error

{‘a’:98, ‘b’:98, ‘c’:98, ‘d’:98}

{‘a’:None, ‘b’:None, ‘c’:None.’d’:None}

{ }

Share your thoughts in the comments