Computer Science, asked by dhusnyraj, 2 months ago

Which of these collections defines a DICTIONARY? *

{"apple", "banana", "cherry"}

("apple", "banana", "cherry")

["apple", "banana", "cherry"]

{"name": "apple", "color": "green"}​

Answers

Answered by 786shaikpeersaheb
7

Answer:

{"name" :"apple", "colour: "green"}

Explanation:

hope it's helpful to you

Answered by amardeeppsingh176
0

Answer:

Explanation:

A DICTIONARY defines {"name": "apple", "color": "green"}​ .

An unordered collection of data is defined as a collection of key-value pairs by the abstract data type known as a dictionary. Each key has a corresponding value that is required to be distinct. In a dictionary, the keys are often restricted to simple types (such as texts or integers), whereas the contents can be of any type.

Data values are kept as key:value pairs in dictionaries. A dictionary is a group of items that are unique, changing, and ordered*.

Dictionary entries are unordered sets, whereas lists are an ordered succession of things. The primary distinction is that dictionary entries are accessed via keys rather than by their position.

The option (d) is the correct answer.

#SPJ2

Similar questions