copy() creates a deep copy of the dictionary

 

Answer:

The copy() method is used to create a shallow copy of the dictionary object in Python.

A shallow copy of a dictionary object is a new dictionary object that contains the same key-value pairs as the original dictionary object , but does not copy the values that are mutable objects, such as lists, dictionaries, or sets . Instead, the shallow copy references the same mutable objects as the original dictionary object. 

So, the given statement is false.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.