Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 12)
12.
What is the purpose of the dictionary.copy() method?
Creates a shallow copy of the dictionary.
Creates a deep copy of the dictionary.
Copies only the keys of the dictionary.
Copies only the values of the dictionary.
Answer: Option
Explanation:
The copy() method creates a shallow copy of the dictionary.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.