Computer Science, asked by abdullah123khawaja, 1 year ago

Which of these collections defines a LIST in Python?
1 point
{"apple","banana","cherry"}
{"name":"apple","color":"green"}
["apple","banana","cherry"]
("apple";"banana";"cherry")

Answers

Answered by maanas20singh04
41

Answer:

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

please leave a like

Answered by adventureisland
1

Option C is Correct.

["apple","banana","cherry"]  these collections defines a LIST in Python.

About List in python :

  • A list is a structure in Python that is a modifiable (or changeable) ordered sequence of elements. The components or qualities that make up a list are called items.
  • Lists are used to store data items, with a comma separating each item (,).
  • In the same manner, as strings are formed by characters underquotes, lists are constructed by integers within square brackets [].
  • Lists can hold data items of any kind, including numerals, in the Programming language.
Similar questions