Home » Programming Language (coding) » Python MCQs » Study the following statement: z = {“x”:0, “y”:1} Which of the following is the correct statement?

Study the following statement: z = {“x”:0, “y”:1} Which of the following is the correct statement?

Study the following statement:

z = {"x":0, "y":1}  

Which of the following is the correct statement?

A. x dictionary z is created
B. x and y are the keys of dictionary z
C. 0 and 1 are the values of dictionary z
D. All of the above

Correct Answer: Option D. All of the above 

Take Part in Discussion:

Your email address will not be published.

Solve : *
1 + 26 =