Computer Science, asked by simrantaneja3532, 11 months ago

Identify the valid declaration of L:
L = [1, 23, ‘hi’, 6].
(i) list (ii) dictionary (iii) array (iv) tuple

Answers

Answered by sarita1974lko
30

Answer:

(i) list in Python

Explanation:

lists are collection of different values but have a common reference variable

Answered by codiepienagoya
11

The given declaration is a part of list.

Explanation:

  • In the given python code a list "L" is declared, which assigns numeric and string value, to hold string value we use a single quote.
  • The list is a part of the data structure, which also known as an organized series of components, that is mutable or changeable.
  • In the list, any component or element within the same list is considered an object.
  • In option ii), it is wrong because it is an unordered collection of data, that stores value like a map.
  • In option iii), it is not used in python.
  • In option iv), it immutable series of objects, that's why it is wrong.

Learn more:

  • List: https://brainly.in/question/15905250
Similar questions