Home » Programming Language (coding) » Python MCQ » 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 

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
24 ⁄ 12 =