Computer Science, asked by harsimranjit, 6 months ago

Which of the following data type is used to store values in Key & Value format? *

1 point

(A) Class

(B) List

(C) Tuple

(D) Dictionary

Answers

Answered by tusharkhatri103
1

Answer:

(B) List

PLS MAKE ME BRAINLIST

Explanation:

because list can store values in key & Value format.

PLS MAKE ME BRAINLIST

Answered by anishaelsasl
0

Answer:

The data type that stores the value in the Key Value format is Dictionary data type.

Explanation:

  • Dictionary data type can be found in the Python code and they are kind of hash table type.
  • Dictionaries are generally known as an associative array and it is Python's implementation of data structure.
  • It is represented as a collection of key-value pair where each key-value pair maps the key to its associated value.
  • The dictionary data type is enclosed within a curly brackets and it consists of comma separated list of key-value pairs and a colon (:) separates each key from its associated value.

Therefore, Dictionary data type is used to store values in Key Value format.

#SPJ3

Similar questions