A

Admin • 832.27K Points
Coach

Q. Which of the following statements will correctly initialize an empty dictionary?

  • (A) my_dict = []
  • (B) my_dict = dict()
  • (C) my_dict = ()
  • (D) my_dict = set()

Explanation by: Admin

`dict()` is the correct function to initialize an empty dictionary.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.