A

Admin • 825.56K Points
Coach

Q. How do you copy a dictionary?

  • (A) copy = dict
  • (B) copy = dict.clone()
  • (C) copy = dict.copy()
  • (D) copy = dict.duplicate()

Explanation by: Admin
`copy()` creates a shallow copy of the dictionary.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.