A

Admin • 825.56K Points
Coach

Q. Which is the most memory-efficient way to create a dictionary?

  • (A) dict = {}
  • (B) dict = dict()
  • (C) dict = dict.fromkeys([])
  • (D) dict = collections.defaultdict()

Explanation by: Admin
`{}` is the most concise and efficient way to create a dictionary.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.