Which of the following statements create a dictionary?(Multiple Correct Answers Possible)
A. d = {}
B. d = {“john”:40, “peter”:45}
C. d = {40:”john”, 45:”peter”}
D. d = (40:”john”, 45:”50”)
Answer:B
Which of the following statements create a dictionary?(Multiple Correct Answers Possible)
A. d = {} B. d = {“john”:40, “peter”:45} C. d = {40:”john”, 45:”peter”} D. d = (40:”john”, 45:”50”)