Examveda

What is the purpose of the fromkeys() method for dictionaries?

A. Creates a new dictionary with specified keys and a default value

B. Adds new keys to the dictionary

C. Copies keys and values from another dictionary

D. Removes specified keys from the dictionary

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python